// The following test should not panic. func TestIssue5915(t *testing.T) { … } // The following test should not panic. func TestIssue5962(t *testing.T) { … } // The following test should not panic. func TestIssue6255(t *testing.T) { … } func TestInvalidEncoding(t *testing.T) { … } func TestInvalidBits(t *testing.T) { … } func TestStreams(t *testing.T) { … } func TestTruncatedStreams(t *testing.T) { … } // Verify that flate.Reader.Read returns (n, io.EOF) instead // of (n, nil) + (0, io.EOF) when possible. // // This helps net/http.Transport reuse HTTP/1 connections more // aggressively. // // See https://github.com/google/go-github/pull/317 for background. func TestReaderEarlyEOF(t *testing.T) { … }