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

Function nth_line

Lib/test/test_monitoring.py:51–52  ·  view source on GitHub ↗
(func, offset)

Source from the content-addressed store, hash-verified

49TEST_TOOL3 = 4
50
51def nth_line(func, offset):
52 return func.__code__.co_firstlineno + offset
53
54class MonitoringBasicTest(unittest.TestCase):
55

Callers 3

test_lines_singleMethod · 0.85
test_lines_loopMethod · 0.85
test_lines_twoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected