void test__type_get_elem_typename__string(void** state) { char s_elemtypename[_TYPE_NAME_SIZE + 1] = {'\0'}; _type_get_elem_typename("string_t", s_elemtypename); assert_true(strncmp(s_elemtypename, "string_t", _TYPE_NAME_SIZE) == 0); }
void test__type_duplicate__all_not_registered(void** state) { assert_true(_type_duplicate(sizeof(_test__type_duplicate1_t), "_test__type_duplicate1_t", sizeof(_test__type_duplicate2_t), "_test__type_duplicate2_t") == false); }
void test__type_duplicate__duplicate_first(void** state) { assert_true(_type_duplicate(sizeof(_test__type_duplicate1_t), "_test__type_duplicate1_t", sizeof(struct _test__type_duplicate1), "struct _test__type_duplicate1") == true); assert_true(_type_is_registered("struct _test__type_duplicate1") != NULL); }
void test__type_is_same__cstl_cstl_same_complex(void** state) { assert_true(_type_is_same("hash_set_t<pair_t<vector_t<_test__type_is_same_t>,list_t<queue_t<int>>>>", "hash_set_t<pair_t<vector_t<struct _test__type_is_same>,list_t<queue_t<signed int>>>>") == true); }
void test__type_is_same_ex__same_typeinfo(void** state) { _typeinfo_t t_info; _test__get_type(&t_info, "int"); assert_true(_type_is_same_ex(&t_info, &t_info) == true); }
void test__type_is_same__cstl_cstl_seq_rel_not_same(void** state) { assert_true(_type_is_same("set_t<int>", "map_t<int,int>") == false); }
void test__type_is_same__cstl_cstl_second_not_same(void** state) { assert_true(_type_is_same("map_t<int,double>", "map_t<int,short>") == false); }
void test__type_is_same__c_string_not_same(void** state) { assert_true(_type_is_same("int", "string_t") == false); }
void test__type_is_same__c_iterator_not_same(void** state) { assert_true(_type_is_same("int", "iterator_t") == false); }
void test__type_is_same__c_c_not_same(void** state) { assert_true(_type_is_same("int", "long") == false); }
void test__type_is_same__c_user_not_same(void** state) { type_register(struct _test__type_is_same, NULL, NULL, NULL, NULL); assert_true(_type_is_same("int", "struct _test__type_is_same") == false); }
void test__type_is_same__c_c_duplicate(void** state) { assert_true(_type_is_same("int", "signed") == true); }
void test__type_is_same__c_c_same(void** state) { assert_true(_type_is_same("int", "int") == true); }
void test__type_get_elem_typename__container(void** state) { char s_elemtypename[_TYPE_NAME_SIZE + 1] = {'\0'}; _type_get_elem_typename("hash_set_t<vector_t<abc_t>>", s_elemtypename); assert_true(strncmp(s_elemtypename, "vector_t<abc_t>", _TYPE_NAME_SIZE) == 0); }
void test__type_is_same__cstl_cstl_elem_not_same(void** state) { assert_true(_type_is_same("slist_t<long>", "slist_t<double>") == false); }
void test__type_is_same__c_cstl_not_same(void** state) { assert_true(_type_is_same("int", "vector_t<int>") == false); }
void test__type_is_same__cstl_cstl_container_not_same(void** state) { assert_true(_type_is_same("set_t<int>", "stack_t<int>") == false); }
void test__type_is_same__user_user_same(void** state) { assert_true(_type_is_same("struct _test__type_is_same", "struct _test__type_is_same") == true); }
void test__type_is_same__cstl_cstl_first_not_same(void** state) { assert_true(_type_is_same("map_t<int,double>", "map_t<long,double>") == false); }
void test__type_is_same__user_user_not_same(void** state) { assert_true(_type_is_same("struct _test__type_is_same", "_test__type_is_same_t") == false); }
void test__type_is_same__cstl_cstl_rel_not_same(void** state) { assert_true(_type_is_same("map_t<int,double>", "hash_map_t<int,double>") == false); }
void test__type_is_same__user_user_duplicate(void** state) { type_duplicate(struct _test__type_is_same, _test__type_is_same_t); assert_true(_type_is_same("_test__type_is_same_t", "struct _test__type_is_same") == true); }
void test__type_is_same__cstl_cstl_invalid(void** state) { assert_true(_type_is_same("pair_t<int<abcdefg,abc>>>>>>,long<pair_t,vector_t<int>,double>", "pair_t<int<dddd>abcdefg") == false); }
void test__type_is_same__user_cstl_not_same(void** state) { assert_true(_type_is_same("_test__type_is_same_t", "list_t<int>") == false); }
void test__type_duplicate__size_not_equal(void** state) { assert_true(_type_duplicate(sizeof(_test__type_duplicate2_t), "_test__type_duplicate2_t", sizeof(int), "int") == false); }
void test__type_is_same__string_iterator_not_same(void** state) { assert_true(_type_is_same("string_t", "vector_iterator_t") == false); }
void test__type_duplicate__all_registered_same(void** state) { assert_true(_type_duplicate(sizeof(_test__type_duplicate1_t), "_test__type_duplicate1_t", sizeof(_test__type_duplicate1_t), "_test__type_duplicate1_t") == true); }
void test__type_is_same__cstl_cstl_same(void** state) { assert_true(_type_is_same("deque_t<int>", "deque_t<signed>") == true); }
void test__type_duplicate__duplicate_second(void** state) { assert_true(_type_duplicate(sizeof(struct _test__type_duplicate2), "struct _test__type_duplicate2", sizeof(_test__type_duplicate2_t), "_test__type_duplicate2_t") == true); assert_true(_type_is_registered("struct _test__type_duplicate2") != NULL); }
void test__type_get_elem_typename__iterator(void** state) { char s_elemtypename[_TYPE_NAME_SIZE + 1] = {'\0'}; _type_get_elem_typename("vector_iterator_t", s_elemtypename); assert_true(strncmp(s_elemtypename, "vector_iterator_t", _TYPE_NAME_SIZE) == 0); }