Example #1
0
 def testGetMergedFailureKey(self):
     self.assertEqual(
         self.target_entities[0].key,
         CompileFailure.GetMergedFailureKey(
             {}, self.build_id, 'compile',
             self.target_entities[0].GetFailureIdentifier()))
Example #2
0
 def _GetMergedFailureKey(self, failure_entities, referred_build_id,
                          step_ui_name, atomic_failure):
     return CompileFailure.GetMergedFailureKey(failure_entities,
                                               referred_build_id,
                                               step_ui_name, atomic_failure)
Example #3
0
 def testGetMergedFailureKeyNoBuildId(self):
     with self.assertRaises(AssertionError):
         CompileFailure.GetMergedFailureKey({}, None, 's', frozenset([]))