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

Method test_premature_eof

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

Source from the content-addressed store, hash-verified

2606 self._test_error(b"\0" * 13)
2607
2608 def test_premature_eof(self):
2609 data = tarfile.TarInfo("foo").tobuf()
2610 self._test_error(data)
2611
2612 def test_trailing_garbage(self):
2613 data = tarfile.TarInfo("foo").tobuf()

Callers

nothing calls this directly

Calls 2

_test_errorMethod · 0.95
tobufMethod · 0.80

Tested by

no test coverage detected