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

Function make_table

tests/test_table.py:164–169  ·  tests/test_table.py::make_table
(vertical_align)

Source from the content-addressed store, hash-verified

162 console = Console(_environ={})
163
164 def make_table(vertical_align):
165 table = Table(show_header=False, box=box.SQUARE)
166 table.add_column(vertical=vertical_align)
167 table.add_row(class="st">"foo", class="st">"\n".join([class="st">"bar"] * 5))
168
169 return table
170
171 with console.capture() as capture:
172 console.print(make_table(class="st">"top"))

Callers 1

test_vertical_align_topFunction · 0.85

Calls 4

add_columnMethod · 0.95
add_rowMethod · 0.95
TableClass · 0.90
joinMethod · 0.80

Tested by

no test coverage detected