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

Function test_render_border_label_empty_label_skipped

tests/test_border.py:98–115  ·  view source on GitHub ↗

Test that we get an empty list of segments if there is no label to display.

(
    width: int, has_left_corner: bool, has_right_corner: bool
)

Source from the content-addressed store, hash-verified

96 ],
97)
98def test_render_border_label_empty_label_skipped(
99 width: int, has_left_corner: bool, has_right_corner: bool
100):
101 """Test that we get an empty list of segments if there is no label to display."""
102
103 assert [] == list(
104 render_border_label(
105 (Content(""), Style()),
106 True,
107 "round",
108 width,
109 Style(),
110 Style(),
111 Style(),
112 has_left_corner,
113 has_right_corner,
114 )
115 )
116
117
118@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

render_border_labelFunction · 0.90
ContentClass · 0.90
StyleClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…