Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mitmproxy/mitmproxy
/ test_setter
Function
test_setter
test/mitmproxy/test_optmanager.py:125–131 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
123
124
125
def
test_setter():
126
o = TO()
127
f = o.setter(
"two"
)
128
f(99)
129
assert o.two == 99
130
with
pytest.raises(Exception, match=
"No such option"
):
131
o.setter(
"nonexistent"
)
132
133
134
def
test_toggler():
Callers
nothing calls this directly
Calls
3
TO
Class · 0.70
f
Function · 0.50
setter
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…