Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python/mypy
/ assert_output
Method
assert_output
mypyc/test/test_emit.py:162–164 ·
view source on GitHub ↗
(self, expected: str)
Source
from the content-addressed store, hash-verified
160
self.assert_output(
"CPy_DECREF(o);\n"
)
161
162
def
assert_output(self, expected: str) -> None:
163
assert
""
.join(self.emitter.fragments) == expected
164
self.emitter.fragments = []
Callers
12
test_emit_inc_ref_object
Method · 0.95
test_emit_inc_ref_int
Method · 0.95
test_emit_inc_ref_rare
Method · 0.95
test_emit_inc_ref_list
Method · 0.95
test_emit_inc_ref_instance
Method · 0.95
test_emit_inc_ref_optional
Method · 0.95
test_emit_dec_ref_object
Method · 0.95
test_emit_dec_ref_int
Method · 0.95
test_emit_dec_ref_rare
Method · 0.95
test_emit_dec_ref_list
Method · 0.95
test_emit_dec_ref_instance
Method · 0.95
test_emit_dec_ref_optional
Method · 0.95
Calls
1
join
Method · 0.45
Tested by
no test coverage detected