MCPcopy
hub / github.com/mitmproxy/mitmproxy / _bisect

Method _bisect

mitmproxy/addons/view.py:231–233  ·  view source on GitHub ↗
(self, f: mitmproxy.flow.Flow)

Source from the content-addressed store, hash-verified

229 # Reflect some methods to the efficient underlying implementation
230
231 def _bisect(self, f: mitmproxy.flow.Flow) -> int:
232 v = self._view.bisect_right(f)
233 return self._rev(v - 1) + 1
234
235 def index(
236 self, f: mitmproxy.flow.Flow, start: int = 0, stop: int | None = None

Callers 2

test_reversedFunction · 0.95
_nearestMethod · 0.80

Calls 1

_revMethod · 0.95

Tested by 1

test_reversedFunction · 0.76