MCPcopy Index your code
hub / github.com/python/cpython / test_traced_decorated_function

Method test_traced_decorated_function

Lib/test/test_trace.py:321–331  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

319 self.assertEqual(self.tracer.results().calledfuncs, expected)
320
321 def test_traced_decorated_function(self):
322 self.tracer.runfunc(traced_decorated_function)
323
324 expected = {
325 self.filemod + ('traced_decorated_function',): 1,
326 self.filemod + ('decorator_fabric',): 1,
327 self.filemod + ('decorator2',): 1,
328 self.filemod + ('decorator1',): 1,
329 self.filemod + ('func',): 1,
330 }
331 self.assertEqual(self.tracer.results().calledfuncs, expected)
332
333
334class TestCallers(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

runfuncMethod · 0.80
resultsMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected