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

Method test_simple

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

Source from the content-addressed store, hash-verified

1207 maxDiff = None
1208
1209 def test_simple(self):
1210
1211 def func1():
1212 line1 = 1
1213 line2 = 2
1214 line3 = 3
1215
1216 self.check_events(func1, recorders = LINE_AND_INSTRUCTION_RECORDERS, expected = [
1217 ("line", "get_events", 10),
1218 ("line", "func1", 1),
1219 ("instruction", "func1", 4),
1220 ("instruction", "func1", 6),
1221 ("line", "func1", 2),
1222 ("instruction", "func1", 8),
1223 ("instruction", "func1", 10),
1224 ("line", "func1", 3),
1225 ("instruction", "func1", 12),
1226 ("instruction", "func1", 14),
1227 ("instruction", "func1", 16),
1228 ("instruction", "func1", 18),
1229 ("line", "get_events", 11),
1230 ])
1231
1232 def test_c_call(self):
1233

Callers

nothing calls this directly

Calls 1

check_eventsMethod · 0.45

Tested by

no test coverage detected