MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_socks5_err

Function test_socks5_err

test/mitmproxy/proxy/layers/test_modes.py:458–466  ·  view source on GitHub ↗
(data: bytes, err: bytes, msg: str, tctx: Context)

Source from the content-addressed store, hash-verified

456 ],
457)
458def test_socks5_err(data: bytes, err: bytes, msg: str, tctx: Context):
459 playbook = Playbook(modes.Socks5Proxy(tctx), logs=True) >> DataReceived(
460 tctx.client, data
461 )
462 if err:
463 playbook << SendData(tctx.client, err)
464 playbook << CloseConnection(tctx.client)
465 playbook << Log(msg)
466 assert playbook
467
468
469@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 5

PlaybookClass · 0.90
DataReceivedClass · 0.90
SendDataClass · 0.90
CloseConnectionClass · 0.90
LogClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…