MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / TestHook

Class TestHook

test/mitmproxy/proxy/test_commands.py:29–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28 @dataclass
29 class TestHook(commands.StartHook):
30 data: bytes
31
32 f = TestHook(b"foo")
33 assert f.args() == [b"foo"]

Callers 1

test_start_hookFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_start_hookFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…