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

Function lorem_ipsum

Lib/test/test_curses.py:1347–1361  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

1345
1346
1347def lorem_ipsum(win):
1348 text = [
1349 'Lorem ipsum',
1350 'dolor sit amet,',
1351 'consectetur',
1352 'adipiscing elit,',
1353 'sed do eiusmod',
1354 'tempor incididunt',
1355 'ut labore et',
1356 'dolore magna',
1357 'aliqua.',
1358 ]
1359 maxy, maxx = win.getmaxyx()
1360 for y, line in enumerate(text[:maxy]):
1361 win.addstr(y, 0, line[:maxx - (y == maxy - 1)])
1362
1363
1364class TextboxTest(unittest.TestCase):

Callers 4

test_clearMethod · 0.85
test_insert_deleteMethod · 0.85
test_scrollMethod · 0.85
test_overlayMethod · 0.85

Calls 1

enumerateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…