MCPcopy
hub / github.com/mitmproxy/mitmproxy / draw

Function draw

test/mitmproxy/proxy/layers/http/test_http_fuzz.py:408–418  ·  view source on GitHub ↗
(lst)

Source from the content-addressed store, hash-verified

406 stream_req, stream_resp, draws = example
407
408 def draw(lst):
409 if draws:
410 this_draw = draws.pop(0)
411 for name, evt in lst:
412 if name == this_draw:
413 return name, evt
414 raise AssertionError(
415 f"{this_draw} not in list: {[name for name, _ in lst]}"
416 )
417 else:
418 return lst[0]
419
420 _test_cancel(stream_req, stream_resp, draw)
421

Callers 7

mutationsFunction · 0.85
chunksFunction · 0.85
h1_requestsFunction · 0.85
h2_responsesFunction · 0.85
h2_headersFunction · 0.85
h2_framesFunction · 0.85
_test_cancelFunction · 0.85

Calls 1

popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…