MCPcopy Index your code
hub / github.com/python/cpython / test_premature_eof

Method test_premature_eof

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

Source from the content-addressed store, hash-verified

2623 self._test_error(b"\0" * 13)
2624
2625 def test_premature_eof(self):
2626 data = tarfile.TarInfo("foo").tobuf()
2627 self._test_error(data)
2628
2629 def test_trailing_garbage(self):
2630 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