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

Function test_fuzz_cancel

test/mitmproxy/proxy/layers/http/test_http_fuzz.py:424–427  ·  view source on GitHub ↗
(stream_request, stream_response, data)

Source from the content-addressed store, hash-verified

422
423@given(stream_request=booleans(), stream_response=booleans(), data=data())
424def test_fuzz_cancel(stream_request, stream_response, data):
425 _test_cancel(
426 stream_request, stream_response, lambda lst: data.draw(sampled_from(lst))
427 )
428
429
430def _test_cancel(stream_req, stream_resp, draw):

Callers

nothing calls this directly

Calls 2

_test_cancelFunction · 0.85
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…