Debian Codegraph @

tests/test_coverup_60.py

raw symbols SCIP
1 # file scalene/scalene_analysis.py:136-202
2 # lines [196]
3 # branches ['187->196']
4
5 import pytest
6 from scalene.scalene_analysis import ScaleneAnalysis
7
8
9 @pytest.fixture
10 def cleanup():
11 # Fixture to perform cleanup after tests
12 yield
13 # No cleanup actions needed for this test
14
15
16 def test_find_outermost_loop_single_line(cleanup):
17 src = "x = 1"
18 result = ScaleneAnalysis.find_outermost_loop(src)
19 assert result == {1: (1, 1)}, "The result should map line 1 to region (1, 1)"