ยปCore Development>Code coverage>Lib/test/dtracedata/call_stack.py

Python code coverage for Lib/test/dtracedata/call_stack.py

#countcontent
1n/adef function_1():
2n/a function_3(1, 2)
3n/a
4n/a# Check stacktrace
5n/adef function_2():
6n/a function_1()
7n/a
8n/a# CALL_FUNCTION_VAR
9n/adef function_3(dummy, dummy2):
10n/a pass
11n/a
12n/a# CALL_FUNCTION_KW
13n/adef function_4(**dummy):
14n/a return 1
15n/a return 2 # unreachable
16n/a
17n/a# CALL_FUNCTION_VAR_KW
18n/adef function_5(dummy, dummy2, **dummy3):
19n/a if False:
20n/a return 7
21n/a return 8
22n/a
23n/adef start():
24n/a function_1()
25n/a function_2()
26n/a function_3(1, 2)
27n/a function_4(test=42)
28n/a function_5(*(1, 2), **{"test": 42})
29n/a
30n/astart()