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

Method test_simple

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

Source from the content-addressed store, hash-verified

1132class TestManyEvents(CheckEvents):
1133
1134 def test_simple(self):
1135
1136 def func1():
1137 line1 = 1
1138 line2 = 2
1139 line3 = 3
1140
1141 self.check_events(func1, recorders = MANY_RECORDERS, expected = [
1142 ('line', 'get_events', 10),
1143 ('call', 'func1', sys.monitoring.MISSING),
1144 ('line', 'func1', 1),
1145 ('line', 'func1', 2),
1146 ('line', 'func1', 3),
1147 ('line', 'get_events', 11),
1148 ('call', 'set_events', 2)])
1149
1150 def test_c_call(self):
1151

Callers

nothing calls this directly

Calls 1

check_eventsMethod · 0.45

Tested by

no test coverage detected