Debian Codegraph @

tests/test_coverup_45.py

raw symbols SCIP
1 # file scalene/scalene_utility.py:112-121
2 # lines [112, 114, 115, 116, 117, 118, 119, 120, 121]
3 # branches ['115->116', '115->121', '116->117', '116->119']
4
5 import pytest
6 from scalene.scalene_utility import flamegraph_format
7 from scalene.scalene_statistics import StackFrame, StackStats
8
9
10 def test_flamegraph_format():
11 stacks = {
12 (StackFrame("test_file.py", "test_function", 1),): StackStats(1, 1.0, 0.5, 2)
13 }
14 expected_output = "test_file.py test_function:1; 1\n"
15 assert flamegraph_format(stacks) == expected_output