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

Method test_branch

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

Source from the content-addressed store, hash-verified

665 self.check_lines(func, [1,2,3,4,5])
666
667 def test_branch(self):
668 def func():
669 if "true".startswith("t"):
670 line = 2
671 line = 3
672 else:
673 line = 5
674 line = 6
675
676 self.check_lines(func, [1,2,3,6])
677
678 def test_try_except(self):
679

Callers

nothing calls this directly

Calls 1

check_linesMethod · 0.95

Tested by

no test coverage detected