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

Method testAddCalledRoutine

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

Source from the content-addressed store, hash-verified

57 '1. Initial component\n2. Called callable "cell" (sample.py:10)')
58
59 def testAddCalledRoutine(self):
60 t = trace.FireTrace('initial object')
61 args = ('example', 'args')
62 t.AddCalledComponent('result', 'run', args, 'sample.py', 12, False,
63 action=trace.CALLED_ROUTINE)
64 self.assertEqual(
65 str(t),
66 '1. Initial component\n2. Called routine "run" (sample.py:12)')
67
68 def testAddInstantiatedClass(self):
69 t = trace.FireTrace('initial object')

Callers

nothing calls this directly

Calls 1

AddCalledComponentMethod · 0.95

Tested by

no test coverage detected