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

Function test_measure

tests/test_block_bar.py:32–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def test_measure():
33 console = Console(width=120)
34 bar = Bar(size=100, begin=11, end=62)
35 measurement = bar.__rich_measure__(console, console.options)
36 assert measurement.minimum == 4
37 assert measurement.maximum == 120
38
39
40def test_zero_total():

Callers

nothing calls this directly

Calls 3

__rich_measure__Method · 0.95
ConsoleClass · 0.90
BarClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…