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

Method test_raw

Lib/test/test_codecs.py:1172–1177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1170 self.assertEqual(codecs.escape_decode(bytearray()), (b"", 0))
1171
1172 def test_raw(self):
1173 decode = codecs.escape_decode
1174 for b in range(256):
1175 b = bytes([b])
1176 if b != b'\\':
1177 self.assertEqual(decode(b + b'0'), (b + b'0', 2))
1178
1179 def test_escape(self):
1180 decode = codecs.escape_decode

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected