go/src/compress/flate/deflate_test.go

type deflateTest

type deflateInflateTest

type reverseBitsTest

var deflateTests

var deflateInflateTests

var reverseBitsTests

func largeDataChunk() []byte {}

func TestBulkHash4(t *testing.T) {}

func TestDeflate(t *testing.T) {}

func TestWriterClose(t *testing.T) {}

type sparseReader

func (r *sparseReader) Read(b []byte) (n int, err error) {}

func TestVeryLongSparseChunk(t *testing.T) {}

type syncBuffer

func newSyncBuffer() *syncBuffer {}

func (b *syncBuffer) Read(p []byte) (n int, err error) {}

func (b *syncBuffer) signal() {}

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

func (b *syncBuffer) WriteMode() {}

func (b *syncBuffer) ReadMode() {}

func (b *syncBuffer) Close() error {}

func testSync(t *testing.T, level int, input []byte, name string) {}

func testToFromWithLevelAndLimit(t *testing.T, level int, input []byte, name string, limit int) {}

func testToFromWithLimit(t *testing.T, input []byte, name string, limit [11]int) {}

func TestDeflateInflate(t *testing.T) {}

func TestReverseBits(t *testing.T) {}

type deflateInflateStringTest

var deflateInflateStringTests

func TestDeflateInflateString(t *testing.T) {}

func TestReaderDict(t *testing.T) {}

func TestWriterDict(t *testing.T) {}

// See https://golang.org/issue/2508
func TestRegression2508(t *testing.T) {}

func TestWriterReset(t *testing.T) {}

func testResetOutput(t *testing.T, level int, dict []byte) {}

// TestBestSpeed tests that round-tripping through deflate and then inflate
// recovers the original input. The Write sizes are near the thresholds in the
// compressor.encSpeed method (0, 16, 128), as well as near maxStoreBlockSize
// (65535).
func TestBestSpeed(t *testing.T) {}

var errIO

type failWriter

func (w *failWriter) Write(b []byte) (int, error) {}

func TestWriterPersistentWriteError(t *testing.T) {}

func TestWriterPersistentFlushError(t *testing.T) {}

func TestWriterPersistentCloseError(t *testing.T) {}

func checkErrors(got []error, want error, t *testing.T) {}

func TestBestSpeedMatch(t *testing.T) {}

func TestBestSpeedMaxMatchOffset(t *testing.T) {}

func TestBestSpeedShiftOffsets(t *testing.T) {}

func TestMaxStackSize(t *testing.T) {}