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

Method test_partial

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

Source from the content-addressed store, hash-verified

552 ill_formed_sequence = b"\x80\xdc\x00\x00"
553
554 def test_partial(self):
555 self.check_partial(
556 "\x00\xff\u0100\uffff\U00010000",
557 [
558 "",
559 "",
560 "",
561 "\x00",
562 "\x00",
563 "\x00",
564 "\x00",
565 "\x00\xff",
566 "\x00\xff",
567 "\x00\xff",
568 "\x00\xff",
569 "\x00\xff\u0100",
570 "\x00\xff\u0100",
571 "\x00\xff\u0100",
572 "\x00\xff\u0100",
573 "\x00\xff\u0100\uffff",
574 "\x00\xff\u0100\uffff",
575 "\x00\xff\u0100\uffff",
576 "\x00\xff\u0100\uffff",
577 "\x00\xff\u0100\uffff\U00010000",
578 ]
579 )
580
581 def test_simple(self):
582 self.assertEqual("\U00010203".encode(self.encoding), b"\x03\x02\x01\x00")

Callers

nothing calls this directly

Calls 1

check_partialMethod · 0.80

Tested by

no test coverage detected