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

Method test_patma_206

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

Source from the content-addressed store, hash-verified

2196 self.assertIs(f(0), None)
2197
2198 def test_patma_206(self):
2199 def f(w):
2200 match w:
2201 case 1 | 2 | 3:
2202 out = locals()
2203 del out["w"]
2204 return out
2205 self.assertEqual(f(1), {})
2206 self.assertEqual(f(2), {})
2207 self.assertEqual(f(3), {})
2208 self.assertEqual(f(3.0), {})
2209 self.assertIs(f(0), None)
2210 self.assertIs(f(4), None)
2211 self.assertIs(f("1"), None)
2212
2213 def test_patma_207(self):
2214 def f(w):

Callers

nothing calls this directly

Calls 3

fFunction · 0.70
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected