// TestEmpty tests that an empty payload still forms a valid GZIP stream. func TestEmpty(t *testing.T) { … } // TestRoundTrip tests that gzipping and then gunzipping is the identity // function. func TestRoundTrip(t *testing.T) { … } // TestLatin1 tests the internal functions for converting to and from Latin-1. func TestLatin1(t *testing.T) { … } // TestLatin1RoundTrip tests that metadata that is representable in Latin-1 // survives a round trip. func TestLatin1RoundTrip(t *testing.T) { … } func TestWriterFlush(t *testing.T) { … } // Multiple gzip files concatenated form a valid gzip file. func TestConcat(t *testing.T) { … } func TestWriterReset(t *testing.T) { … } type limitedWriter … func (l *limitedWriter) Write(p []byte) (n int, err error) { … } // Write should never return more bytes than the input slice. func TestLimitedWrite(t *testing.T) { … }