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

Method test_keys_reuse

Lib/test/test_json/test_decode.py:88–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.assertIs(b, d)
87
88 def test_keys_reuse(self):
89 s = '[{"a_key": 1, "b_\xe9": 2}, {"a_key": 3, "b_\xe9": 4}]'
90 self.check_keys_reuse(s, self.loads)
91 decoder = self.json.decoder.JSONDecoder()
92 self.check_keys_reuse(s, decoder.decode)
93 self.assertFalse(decoder.memo)
94
95 def test_extra_data(self):
96 s = '[1, 2, 3]5'

Callers

nothing calls this directly

Calls 2

check_keys_reuseMethod · 0.95
assertFalseMethod · 0.80

Tested by

no test coverage detected