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

Method test_trailing_garbage

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

Source from the content-addressed store, hash-verified

2627 self._test_error(data)
2628
2629 def test_trailing_garbage(self):
2630 data = tarfile.TarInfo("foo").tobuf()
2631 self._test_error(data + b"\0" * 13)
2632
2633 def test_invalid(self):
2634 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