def test_includes_from_type_should_handle_string(self): type_resolver = TypeResolver({}) helper = IdlTestingHelper() for string_type in STRING_TYPES: idl_type = helper.make_stub_idl_type(string_type) self.assertEqual(type_resolver._includes_from_type(idl_type), set([STRING_INCLUDE_PATH]))
def test_includes_from_type_should_filter_primitive_types(self): helper = IdlTestingHelper() type_resolver = TypeResolver({}) for primitive_type in PRIMITIVE_TYPES: idl_type = helper.make_stub_idl_type(primitive_type) self.assertEqual(type_resolver._includes_from_type(idl_type), set())
def test_includes_from_type_should_filter_primitive_types(self): helper = IdlTestingHelper() type_resolver = TypeResolver({}) for primitive_type in PRIMITIVE_TYPES: idl_type = helper.make_stub_idl_type(primitive_type) self.assertEqual( type_resolver._includes_from_type(idl_type), set())
def test_includes_from_type_should_handle_string(self): type_resolver = TypeResolver({}) helper = IdlTestingHelper() for string_type in STRING_TYPES: idl_type = helper.make_stub_idl_type(string_type) self.assertEqual( type_resolver._includes_from_type(idl_type), set([STRING_INCLUDE_PATH]))
def test_includes_from_type_should_filter_void(self): type_resolver = TypeResolver({}) helper = IdlTestingHelper() idl_type = helper.make_stub_idl_type('void') self.assertEqual(type_resolver._includes_from_type(idl_type), set())
def test_includes_from_type_should_filter_void(self): type_resolver = TypeResolver({}) helper = IdlTestingHelper() idl_type = helper.make_stub_idl_type('void') self.assertEqual( type_resolver._includes_from_type(idl_type), set())