go/src/archive/zip/zip_test.go

func TestOver65kFiles(t *testing.T) {}

func TestModTime(t *testing.T) {}

func testHeaderRoundTrip(fh *FileHeader, wantUncompressedSize uint32, wantUncompressedSize64 uint64, t *testing.T) {}

func TestFileHeaderRoundTrip(t *testing.T) {}

func TestFileHeaderRoundTrip64(t *testing.T) {}

func TestFileHeaderRoundTripModified(t *testing.T) {}

func TestFileHeaderRoundTripWithoutModified(t *testing.T) {}

type repeatedByte

type rleBuffer

func (r *rleBuffer) Size() int64 {}

func (r *rleBuffer) Write(p []byte) (n int, err error) {}

func memset(a []byte, b byte) {}

func (r *rleBuffer) ReadAt(p []byte, off int64) (n int, err error) {}

// Just testing the rleBuffer used in the Zip64 test above. Not used by the zip code.
func TestRLEBuffer(t *testing.T) {}

type fakeHash32

func (fakeHash32) Write(p []byte) (int, error) {}

func (fakeHash32) Sum32() uint32               {}

func TestZip64(t *testing.T) {}

func TestZip64EdgeCase(t *testing.T) {}

// Tests that we generate a zip64 file if the directory at offset
// 0xFFFFFFFF, but not before.
func TestZip64DirectoryOffset(t *testing.T) {}

// At 16k records, we need to generate a zip64 file.
func TestZip64ManyRecords(t *testing.T) {}

type suffixSaver

func (ss *suffixSaver) Size() int64 {}

var errDiscardedBytes

func (ss *suffixSaver) ReadAt(p []byte, off int64) (n int, err error) {}

func (ss *suffixSaver) Suffix() []byte {}

func (ss *suffixSaver) Write(p []byte) (n int, err error) {}

// generatesZip64 reports whether f wrote a zip64 file.
// f is also responsible for closing w.
func generatesZip64(t *testing.T, f func(w *Writer)) bool {}

type sizedReaderAt

func suffixIsZip64(t *testing.T, zip sizedReaderAt) bool {}

// Zip64 is required if the total size of the records is uint32max.
func TestZip64LargeDirectory(t *testing.T) {}

func testZip64(t testing.TB, size int64) *rleBuffer {}

// Issue 9857
func testZip64DirectoryRecordLength(buf *rleBuffer, t *testing.T) {}

func testValidHeader(h *FileHeader, t *testing.T) {}

// Issue 4302.
func TestHeaderInvalidTagAndSize(t *testing.T) {}

func TestHeaderTooShort(t *testing.T) {}

func TestHeaderTooLongErr(t *testing.T) {}

func TestHeaderIgnoredSize(t *testing.T) {}

// Issue 4393. It is valid to have an extra data header
// which contains no body.
func TestZeroLengthHeader(t *testing.T) {}

// Just benchmarking how fast the Zip64 test above is. Not related to
// our zip performance, since the test above disabled CRC32 and flate.
func BenchmarkZip64Test(b *testing.B) {}

func BenchmarkZip64TestSizes(b *testing.B) {}

func TestSuffixSaver(t *testing.T) {}

type zeros

func (zeros) Read(p []byte) (int, error) {}