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

Function test_tree_measure

tests/test_tree.py:139–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138
139def test_tree_measure():
140 tree = Tree("foo")
141 tree.add("bar")
142 tree.add("mushroom risotto")
143 console = Console()
144 measurement = Measurement.get(console, console.options, tree)
145 assert measurement == Measurement(12, 20)

Callers

nothing calls this directly

Calls 5

addMethod · 0.95
TreeClass · 0.90
ConsoleClass · 0.90
MeasurementClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected