MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_format_durations

Function test_format_durations

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

Source from the content-addressed store, hash-verified

15
16
17def test_format_durations():
18 assert format_duration(-0.1) == ("-100ms", "gradient_99")
19 assert format_duration(0) == ("0ms", "gradient_99")
20 assert format_duration(0.1) == ("100ms", "gradient_43")
21 assert format_duration(100) == ("100s", "gradient_00")
22
23
24def test_format_keyvals():

Callers

nothing calls this directly

Calls 1

format_durationFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…