MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_masking

Function test_masking

test/mitmproxy/proxy/layers/test_websocket.py:56–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55
56def test_masking():
57 m = masked(b"\x02\x03foo")
58 assert m == b"\x02\x83\x1c\x96\xd4\rz\xf9\xbb"
59 assert m == masked_bytes(b"\x02\x03foo")
60
61
62def test_upgrade(tctx):

Callers

nothing calls this directly

Calls 2

maskedFunction · 0.85
masked_bytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…