savio pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=cbc63850267d7cccc10c6f9bc21d72b50d07655a
commit cbc63850267d7cccc10c6f9bc21d72b50d07655a Author: Savio Sena <sa...@expertisesolutions.com.br> Date: Fri Sep 12 17:09:48 2014 -0300 tests/eolian: Added unit tests for eolian_function_is_constructor(). --- src/tests/eolian/eolian_parsing.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c index 09127e0..6fa99bb 100644 --- a/src/tests/eolian/eolian_parsing.c +++ b/src/tests/eolian/eolian_parsing.c @@ -290,11 +290,15 @@ START_TEST(eolian_ctor_dtor) fail_if(!(impl_func = eolian_implement_function_get(impl, NULL))); fail_if(impl_class != base); fail_if(strcmp(eolian_function_name_get(impl_func), "constructor")); + fail_if(!eolian_function_is_constructor(impl_func, base)); + fail_if(!eolian_function_is_constructor(impl_func, class)); fail_if(!(eina_iterator_next(iter, (void**)&impl))); fail_if(!(impl_class = eolian_implement_class_get(impl))); fail_if(!(impl_func = eolian_implement_function_get(impl, NULL))); fail_if(impl_class != base); fail_if(strcmp(eolian_function_name_get(impl_func), "destructor")); + fail_if(eolian_function_is_constructor(impl_func, base)); + fail_if(eolian_function_is_constructor(impl_func, class)); eina_iterator_free(iter); /* Custom ctors/dtors */ @@ -305,11 +309,15 @@ START_TEST(eolian_ctor_dtor) fail_if(!(impl_func = eolian_constructor_function_get(ctor))); fail_if(impl_class != class); fail_if(strcmp(eolian_function_name_get(impl_func), "custom_constructor_1")); + fail_if(!eolian_function_is_constructor(impl_func, class)); + fail_if(eolian_function_is_constructor(impl_func, base)); fail_if(!(eina_iterator_next(iter, (void**)&ctor))); fail_if(!(impl_class = eolian_constructor_class_get(ctor))); fail_if(!(impl_func = eolian_constructor_function_get(ctor))); fail_if(impl_class != class); fail_if(strcmp(eolian_function_name_get(impl_func), "custom_constructor_2")); + fail_if(!eolian_function_is_constructor(impl_func, class)); + fail_if(eolian_function_is_constructor(impl_func, base)); fail_if(eina_iterator_next(iter, &dummy)); eina_iterator_free(iter); --