()
| 319 | |
| 320 | |
| 321 | def test_varg_default_wildcard(): |
| 322 | expr = simple_call_packed.body.blocks[0].bindings[0].value |
| 323 | yes_pattern_explicit = ExternFuncPattern("test.vm.mul")(wildcard(), wildcard()) |
| 324 | yes_pattern_implicit = ExternFuncPattern("test.vm.mul")(varg_default_wildcard=True) |
| 325 | no_pattern = ExternFuncPattern("test.vm.mul")(wildcard()) |
| 326 | |
| 327 | assert yes_pattern_explicit.match(expr) |
| 328 | assert yes_pattern_implicit.match(expr) |
| 329 | assert not no_pattern.match(expr) |
| 330 | |
| 331 | |
| 332 | def test_simple_call_packed(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…