MCPcopy Index your code
hub / github.com/python/mypy / test_valid_fn

Method test_valid_fn

mypyc/test/test_ircheck.py:66–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 )
65
66 def test_valid_fn(self) -> None:
67 assert_no_errors(
68 FuncIR(
69 decl=self.func_decl(name="func_1"),
70 arg_regs=[],
71 blocks=[self.basic_block(ops=[Return(value=NONE_VALUE)])],
72 )
73 )
74
75 def test_block_not_terminated_empty_block(self) -> None:
76 block = self.basic_block([])

Callers

nothing calls this directly

Calls 5

func_declMethod · 0.95
basic_blockMethod · 0.95
FuncIRClass · 0.90
ReturnClass · 0.90
assert_no_errorsFunction · 0.85

Tested by

no test coverage detected