(self)
| 3477 | self.assertListEqual(self._trace(f, "spam"), [1, 2, 3]) |
| 3478 | |
| 3479 | def test_only_default_capture(self): |
| 3480 | def f(command): # 0 |
| 3481 | match command.split(): # 1 |
| 3482 | case x: # 2 |
| 3483 | return x # 3 |
| 3484 | |
| 3485 | self.assertListEqual(self._trace(f, "go n"), [1, 2, 3]) |
| 3486 | self.assertListEqual(self._trace(f, "go x"), [1, 2, 3]) |
| 3487 | self.assertListEqual(self._trace(f, "spam"), [1, 2, 3]) |
| 3488 | |
| 3489 | def test_unreachable_code(self): |
| 3490 | def f(command): # 0 |
nothing calls this directly
no test coverage detected