Lines Matching refs:mod_info

81             mod_info = module_info.ModuleInfo()
83 mod_info.module_info_target)
92 mod_info = module_info.ModuleInfo()
94 mod_info.module_info_target)
103 mod_info = module_info.ModuleInfo()
105 mod_info.module_info_target)
123 mod_info = module_info.ModuleInfo()
125 mod_info._get_path_to_module_info(mod_info_dict))
130 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
131 self.assertTrue(mod_info.is_module(EXPECTED_MOD_TARGET))
132 self.assertFalse(mod_info.is_module(UNEXPECTED_MOD_TARGET))
137 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
138 self.assertEqual(mod_info.get_paths(EXPECTED_MOD_TARGET),
140 self.assertEqual(mod_info.get_paths(MOD_NO_PATH), [])
144 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
145 self.assertEqual(mod_info.get_module_names(EXPECTED_MOD_TARGET_PATH[0]),
148 self, mod_info.get_module_names(PATH_TO_MULT_MODULES),
153 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
155 for path_to_mod_info in mod_info.path_to_module_info[PATH_TO_MULT_MODULES_WITH_MULTI_ARCH]:
163 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
165 self.assertFalse(mod_info.is_suite_in_compatibility_suites("cts", info))
167 self.assertTrue(mod_info.is_suite_in_compatibility_suites("cts", info2))
168 self.assertFalse(mod_info.is_suite_in_compatibility_suites("vts10", info2))
170 self.assertTrue(mod_info.is_suite_in_compatibility_suites("cts", info3))
171 self.assertTrue(mod_info.is_suite_in_compatibility_suites("vts10", info3))
172 self.assertFalse(mod_info.is_suite_in_compatibility_suites("ats", info3))
178 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
180 self.assertEqual(mod_info.get_testable_modules(), set())
181 mod_info.name_to_module_info = NAME_TO_MODULE_INFO
184 self.assertEqual(1, len(mod_info.get_testable_modules('test_suite')))
186 self.assertEqual(0, len(mod_info.get_testable_modules('test_suite')))
187 self.assertEqual(1, len(mod_info.get_testable_modules()))
193 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
200 self.assertFalse(mod_info.is_testable_module(non_installed_module_info))
201 self.assertFalse(mod_info.is_testable_module({}))
203 self.assertTrue(mod_info.is_testable_module(installed_module_info))
205 self.assertFalse(mod_info.is_testable_module(installed_module_info))
207 self.assertTrue(mod_info.is_testable_module(non_installed_module_info))
213 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
217 self.assertTrue(mod_info.has_test_config(info))
218 self.assertTrue(mod_info.has_test_config({}))
221 self.assertTrue(mod_info.has_test_config(info))
222 self.assertFalse(mod_info.has_test_config({}))
226 self.assertTrue(mod_info.has_test_config(info2))
232 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
233 mod_info.name_to_module_info = MOD_NAME_INFO_DICT
234 mod_info.path_to_module_info = MOD_PATH_INFO_DICT
236 self.assertEqual(mod_info.get_robolectric_test_name(
241 self.assertEqual(mod_info.get_robolectric_test_name(
249 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
250 mod_info.name_to_module_info = MOD_NAME_INFO_DICT
251 mod_info.path_to_module_info = MOD_PATH_INFO_DICT
255 self.assertTrue(mod_info.is_robolectric_test(RUN_ROBO_MOD_NAME))
257 self.assertTrue(mod_info.is_robolectric_test(NON_RUN_ROBO_MOD_NAME))
260 self.assertFalse(mod_info.is_robolectric_test('rand_mod'))
265 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
274 mod_info.name_to_module_info = MOD_INFO_DICT
275 self.assertTrue(mod_info.is_auto_gen_test_config(MOD_NAME1))
276 self.assertFalse(mod_info.is_auto_gen_test_config(MOD_NAME2))
277 self.assertFalse(mod_info.is_auto_gen_test_config(MOD_NAME3))
278 self.assertFalse(mod_info.is_auto_gen_test_config(MOD_NAME4))
282 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
287 mod_info.name_to_module_info = MOD_INFO_DICT
288 self.assertTrue(mod_info.is_robolectric_module(MOD_INFO_DICT[MOD_NAME1]))
289 self.assertFalse(mod_info.is_robolectric_module(MOD_INFO_DICT[MOD_NAME2]))