MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_traced_decorated_function

Method test_traced_decorated_function

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

Source from the content-addressed store, hash-verified

322 self.assertEqual(self.tracer.results().calledfuncs, expected)
323
324 def test_traced_decorated_function(self):
325 self.tracer.runfunc(traced_decorated_function)
326
327 expected = {
328 self.filemod + ('traced_decorated_function',): 1,
329 self.filemod + ('decorator_fabric',): 1,
330 self.filemod + ('decorator2',): 1,
331 self.filemod + ('decorator1',): 1,
332 self.filemod + ('func',): 1,
333 }
334 self.assertEqual(self.tracer.results().calledfuncs, expected)
335
336
337class 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