MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / Foo

Class Foo

test/mitmproxy/proxy/test_utils.py:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7def test_expect():
8 class Foo:
9 @expect(str, int)
10 def foo(self, x):
11 return "".join(reversed(x))
12
13 @expect(str)
14 def bar(self, x):
15 yield "".join(reversed(x))
16
17 f = Foo()
18

Callers 1

test_expectFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_expectFunction · 0.56