MCPcopy
hub / github.com/Textualize/textual / test_border_render_row

Function test_border_render_row

tests/test_border.py:12–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def test_border_render_row():
13 style = RichStyle.parse("red")
14 row = (Segment("┏", style), Segment("━", style), Segment("┓", style))
15
16 assert list(render_row(row, 5, False, False, ())) == [
17 Segment(row[1].text * 5, row[1].style)
18 ]
19 assert list(render_row(row, 5, True, False, ())) == [
20 row[0],
21 Segment(row[1].text * 4, row[1].style),
22 ]
23 assert list(render_row(row, 5, False, True, ())) == [
24 Segment(row[1].text * 4, row[1].style),
25 row[2],
26 ]
27 assert list(render_row(row, 5, True, True, ())) == [
28 row[0],
29 Segment(row[1].text * 3, row[1].style),
30 row[2],
31 ]
32
33
34async def test_border_title_single_line():

Callers

nothing calls this directly

Calls 2

render_rowFunction · 0.90
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…