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

Function test_duplicate

test/mitmproxy/addons/test_view.py:358–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356
357
358def test_duplicate():
359 v = view.View()
360 with taddons.context():
361 f = [
362 tflow.tflow(),
363 tflow.tflow(),
364 ]
365 v.add(f)
366 assert len(v) == 2
367 v.duplicate(f)
368 assert len(v) == 4
369 assert v.focus.index == 2
370
371
372def test_remove():

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
duplicateMethod · 0.95
contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…