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

Method test_trailing_garbage

Lib/test/test_tarfile.py:2612–2614  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2610 self._test_error(data)
2611
2612 def test_trailing_garbage(self):
2613 data = tarfile.TarInfo("foo").tobuf()
2614 self._test_error(data + b"\0" * 13)
2615
2616 def test_invalid(self):
2617 self._test_error(b"a" * 512)

Callers

nothing calls this directly

Calls 2

_test_errorMethod · 0.95
tobufMethod · 0.80

Tested by

no test coverage detected