(self)
| 3467 | self.assertListEqual(self._trace(f, "spam"), [1, 2, 4]) |
| 3468 | |
| 3469 | def test_only_default_wildcard(self): |
| 3470 | def f(command): # 0 |
| 3471 | match command.split(): # 1 |
| 3472 | case _: # 2 |
| 3473 | return "default" # 3 |
| 3474 | |
| 3475 | self.assertListEqual(self._trace(f, "go n"), [1, 2, 3]) |
| 3476 | self.assertListEqual(self._trace(f, "go x"), [1, 2, 3]) |
| 3477 | self.assertListEqual(self._trace(f, "spam"), [1, 2, 3]) |
| 3478 | |
| 3479 | def test_only_default_capture(self): |
| 3480 | def f(command): # 0 |
nothing calls this directly
no test coverage detected