MCPcopy
hub / github.com/Textualize/rich / test_divide_edge_2

Function test_divide_edge_2

tests/test_segment.py:250–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248
249
250def test_divide_edge_2():
251 segments = [
252 Segment("╭─"),
253 Segment(
254 "────── Placeholder ───────",
255 ),
256 Segment(
257 "─╮",
258 ),
259 ]
260 result = list(Segment.divide(segments, [30, 60]))
261 expected = [segments, []]
262 print(repr(result))
263 assert result == expected
264
265
266@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

SegmentClass · 0.90
printFunction · 0.50
divideMethod · 0.45

Tested by

no test coverage detected