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

Method test_simple

Lib/test/test_monitoring.py:1800–1818  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1798 sys.monitoring.register_callback(tool, recorder.event_type, None)
1799
1800 def test_simple(self):
1801
1802 def func():
1803 x = 1
1804 for a in range(2):
1805 if a:
1806 x = 4
1807 else:
1808 x = 6
1809 7
1810
1811 self.check_branches(func)
1812
1813 def whilefunc(n=0):
1814 while n < 3:
1815 n += 1 # line 2
1816 3
1817
1818 self.check_branches(whilefunc)
1819
1820 def test_except_star(self):
1821

Callers

nothing calls this directly

Calls 1

check_branchesMethod · 0.95

Tested by

no test coverage detected