MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_mark

Function test_mark

test/mitmproxy/addons/test_core.py:30–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_mark():
31 sa = core.Core()
32 with taddons.context(loadcore=False):
33 f = tflow.tflow()
34 assert not f.marked
35 sa.mark([f], ":default:")
36 assert f.marked
37
38 with pytest.raises(exceptions.CommandError):
39 sa.mark([f], "invalid")
40
41 sa.mark_toggle([f])
42 assert not f.marked
43 sa.mark_toggle([f])
44 assert f.marked
45
46
47def test_kill():

Callers

nothing calls this directly

Calls 3

markMethod · 0.95
mark_toggleMethod · 0.95
contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…