MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_simple

Method test_simple

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

Source from the content-addressed store, hash-verified

1140class TestManyEvents(CheckEvents):
1141
1142 def test_simple(self):
1143
1144 def func1():
1145 line1 = 1
1146 line2 = 2
1147 line3 = 3
1148
1149 self.check_events(func1, recorders = MANY_RECORDERS, expected = [
1150 ('line', 'get_events', 10),
1151 ('call', 'func1', sys.monitoring.MISSING),
1152 ('line', 'func1', 1),
1153 ('line', 'func1', 2),
1154 ('line', 'func1', 3),
1155 ('line', 'get_events', 11),
1156 ('call', 'set_events', 2)])
1157
1158 def test_c_call(self):
1159

Callers

nothing calls this directly

Calls 1

check_eventsMethod · 0.45

Tested by

no test coverage detected