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

Method test_only_default_wildcard

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

Source from the content-addressed store, hash-verified

3478
3479 @unittest.expectedFailure # TODO: RUSTPYTHON
3480 def test_only_default_wildcard(self):
3481 def f(command): # 0
3482 match command.split(): # 1
3483 case _: # 2
3484 return "default" # 3
3485
3486 self.assertListEqual(self._trace(f, "go n"), [1, 2, 3])
3487 self.assertListEqual(self._trace(f, "go x"), [1, 2, 3])
3488 self.assertListEqual(self._trace(f, "spam"), [1, 2, 3])
3489
3490 @unittest.expectedFailure # TODO: RUSTPYTHON
3491 def test_only_default_capture(self):

Callers

nothing calls this directly

Calls 2

_traceMethod · 0.95
assertListEqualMethod · 0.80

Tested by

no test coverage detected