MCPcopy
hub / github.com/google/python-fire / testAddCalledCallable

Method testAddCalledCallable

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

Source from the content-addressed store, hash-verified

48 '1. Initial component\n2. Accessed property "prop" (sample.py:12)')
49
50 def testAddCalledCallable(self):
51 t = trace.FireTrace('initial object')
52 args = ('example', 'args')
53 t.AddCalledComponent('result', 'cell', args, 'sample.py', 10, False,
54 action=trace.CALLED_CALLABLE)
55 self.assertEqual(
56 str(t),
57 '1. Initial component\n2. Called callable "cell" (sample.py:10)')
58
59 def testAddCalledRoutine(self):
60 t = trace.FireTrace('initial object')

Callers

nothing calls this directly

Calls 1

AddCalledComponentMethod · 0.95

Tested by

no test coverage detected