MCPcopy Index your code
hub / github.com/google/python-fire / testFireTraceElementHasError

Method testFireTraceElementHasError

fire/trace_test.py:116–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114class FireTraceElementTest(testutils.BaseTestCase):
115
116 def testFireTraceElementHasError(self):
117 el = trace.FireTraceElement()
118 self.assertFalse(el.HasError())
119
120 el = trace.FireTraceElement(error=ValueError('example error'))
121 self.assertTrue(el.HasError())
122
123 def testFireTraceElementAsStringNoMetadata(self):
124 el = trace.FireTraceElement(

Callers

nothing calls this directly

Calls 1

HasErrorMethod · 0.95

Tested by

no test coverage detected