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

Method test_setpos_for_xy_simple

Lib/test/test_pyrepl/test_reader.py:125–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 self.assert_screen_equal(reader, f"{9*"a"}\\\na")
124
125 def test_setpos_for_xy_simple(self):
126 events = code_to_events("11+11")
127 reader, _ = handle_all_events(events)
128 reader.setpos_from_xy(0, 0)
129 self.assertEqual(reader.pos, 0)
130
131 def test_setpos_from_xy_multiple_lines(self):
132 # fmt: off

Callers

nothing calls this directly

Calls 4

code_to_eventsFunction · 0.85
handle_all_eventsFunction · 0.85
setpos_from_xyMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected