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) { … }
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) { … }
func TestZip64DirectoryOffset(t *testing.T) { … }
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) { … }
func generatesZip64(t *testing.T, f func(w *Writer)) bool { … }
type sizedReaderAt …
func suffixIsZip64(t *testing.T, zip sizedReaderAt) bool { … }
func TestZip64LargeDirectory(t *testing.T) { … }
func testZip64(t testing.TB, size int64) *rleBuffer { … }
func testZip64DirectoryRecordLength(buf *rleBuffer, t *testing.T) { … }
func testValidHeader(h *FileHeader, t *testing.T) { … }
func TestHeaderInvalidTagAndSize(t *testing.T) { … }
func TestHeaderTooShort(t *testing.T) { … }
func TestHeaderTooLongErr(t *testing.T) { … }
func TestHeaderIgnoredSize(t *testing.T) { … }
func TestZeroLengthHeader(t *testing.T) { … }
func BenchmarkZip64Test(b *testing.B) { … }
func BenchmarkZip64TestSizes(b *testing.B) { … }
func TestSuffixSaver(t *testing.T) { … }
type zeros …
func (zeros) Read(p []byte) (int, error) { … }