()
| 10 | |
| 11 | |
| 12 | def 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 | |
| 34 | async def test_border_title_single_line(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…