go/src/archive/tar/reader_test.go

func TestReader(t *testing.T) {}

func TestPartialRead(t *testing.T) {}

func TestUninitializedRead(t *testing.T) {}

type reader

type readSeeker

type readBadSeeker

func (rbs *readBadSeeker) Seek(int64, int) (int64, error) {}

// TestReadTruncation test the ending condition on various truncated files and
// that truncated files are still detected even if the underlying io.Reader
// satisfies io.Seeker.
func TestReadTruncation(t *testing.T) {}

// TestReadHeaderOnly tests that Reader does not attempt to read special
// header-only files.
func TestReadHeaderOnly(t *testing.T) {}

func TestMergePAX(t *testing.T) {}

func TestParsePAX(t *testing.T) {}

func TestReadOldGNUSparseMap(t *testing.T) {}

func TestReadGNUSparsePAXHeaders(t *testing.T) {}

type testNonEmptyReader

func (r testNonEmptyReader) Read(b []byte) (int, error) {}

func TestFileReader(t *testing.T) {}

func TestInsecurePaths(t *testing.T) {}

func TestDisableInsecurePathCheck(t *testing.T) {}