• Home
  • Raw
  • Download

Lines Matching refs:mod_info

77             mod_info = module_info.ModuleInfo()
79 mod_info.module_info_target)
88 mod_info = module_info.ModuleInfo()
90 mod_info.module_info_target)
99 mod_info = module_info.ModuleInfo()
101 mod_info.module_info_target)
119 mod_info = module_info.ModuleInfo()
121 mod_info._get_path_to_module_info(mod_info_dict))
126 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
127 self.assertTrue(mod_info.is_module(EXPECTED_MOD_TARGET))
128 self.assertFalse(mod_info.is_module(UNEXPECTED_MOD_TARGET))
133 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
134 self.assertEqual(mod_info.get_paths(EXPECTED_MOD_TARGET),
136 self.assertEqual(mod_info.get_paths(MOD_NO_PATH), [])
140 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
141 self.assertEqual(mod_info.get_module_names(EXPECTED_MOD_TARGET_PATH[0]),
143 self.assertEqual(mod_info.get_module_names(PATH_TO_MULT_MODULES),
148 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
150 for path_to_mod_info in mod_info.path_to_module_info[PATH_TO_MULT_MODULES_WITH_MULTI_ARCH]:
158 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
160 self.assertFalse(mod_info.is_suite_in_compatibility_suites("cts", info))
162 self.assertTrue(mod_info.is_suite_in_compatibility_suites("cts", info2))
163 self.assertFalse(mod_info.is_suite_in_compatibility_suites("vts10", info2))
165 self.assertTrue(mod_info.is_suite_in_compatibility_suites("cts", info3))
166 self.assertTrue(mod_info.is_suite_in_compatibility_suites("vts10", info3))
167 self.assertFalse(mod_info.is_suite_in_compatibility_suites("ats", info3))
173 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
175 self.assertEqual(mod_info.get_testable_modules(), set())
176 mod_info.name_to_module_info = NAME_TO_MODULE_INFO
179 self.assertEqual(1, len(mod_info.get_testable_modules('test_suite')))
181 self.assertEqual(0, len(mod_info.get_testable_modules('test_suite')))
182 self.assertEqual(1, len(mod_info.get_testable_modules()))
188 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
195 self.assertFalse(mod_info.is_testable_module(non_installed_module_info))
196 self.assertFalse(mod_info.is_testable_module({}))
198 self.assertTrue(mod_info.is_testable_module(installed_module_info))
200 self.assertFalse(mod_info.is_testable_module(installed_module_info))
202 self.assertTrue(mod_info.is_testable_module(non_installed_module_info))
207 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
211 self.assertTrue(mod_info.has_test_config(info))
212 self.assertTrue(mod_info.has_test_config({}))
215 self.assertTrue(mod_info.has_test_config(info))
216 self.assertFalse(mod_info.has_test_config({}))
220 self.assertTrue(mod_info.has_test_config(info2))
226 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
227 mod_info.name_to_module_info = MOD_NAME_INFO_DICT
228 mod_info.path_to_module_info = MOD_PATH_INFO_DICT
230 self.assertEqual(mod_info.get_robolectric_test_name(
235 self.assertEqual(mod_info.get_robolectric_test_name(
243 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
244 mod_info.name_to_module_info = MOD_NAME_INFO_DICT
245 mod_info.path_to_module_info = MOD_PATH_INFO_DICT
249 self.assertTrue(mod_info.is_robolectric_test(RUN_ROBO_MOD_NAME))
251 self.assertTrue(mod_info.is_robolectric_test(NON_RUN_ROBO_MOD_NAME))
254 self.assertFalse(mod_info.is_robolectric_test('rand_mod'))
259 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
268 mod_info.name_to_module_info = MOD_INFO_DICT
269 self.assertTrue(mod_info.is_auto_gen_test_config(MOD_NAME1))
270 self.assertFalse(mod_info.is_auto_gen_test_config(MOD_NAME2))
271 self.assertFalse(mod_info.is_auto_gen_test_config(MOD_NAME3))
272 self.assertFalse(mod_info.is_auto_gen_test_config(MOD_NAME4))
276 mod_info = module_info.ModuleInfo(module_file=JSON_FILE_PATH)
281 mod_info.name_to_module_info = MOD_INFO_DICT
282 self.assertTrue(mod_info.is_robolectric_module(MOD_INFO_DICT[MOD_NAME1]))
283 self.assertFalse(mod_info.is_robolectric_module(MOD_INFO_DICT[MOD_NAME2]))