MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_truncated_text

Function test_truncated_text

test/mitmproxy/tools/console/test_common.py:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def test_truncated_text():
40 urwid.set_encoding("utf8")
41 half_width_text = common.TruncatedText("Half-width", [])
42 full_width_text = common.TruncatedText("FULL-WIDTH", [])
43 assert half_width_text.render((10,))
44 assert full_width_text.render((10,))

Callers

nothing calls this directly

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…