MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_only_default_capture

Method test_only_default_capture

Lib/test/test_patma.py:3491–3499  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3489
3490 @unittest.expectedFailure # TODO: RUSTPYTHON
3491 def test_only_default_capture(self):
3492 def f(command): # 0
3493 match command.split(): # 1
3494 case x: # 2
3495 return x # 3
3496
3497 self.assertListEqual(self._trace(f, "go n"), [1, 2, 3])
3498 self.assertListEqual(self._trace(f, "go x"), [1, 2, 3])
3499 self.assertListEqual(self._trace(f, "spam"), [1, 2, 3])
3500
3501 @unittest.expectedFailure # TODO: RUSTPYTHON
3502 def test_unreachable_code(self):

Callers

nothing calls this directly

Calls 2

_traceMethod · 0.95
assertListEqualMethod · 0.80

Tested by

no test coverage detected