var sniffTests …
func TestDetectContentType(t *testing.T) { … }
func TestServerContentTypeSniff(t *testing.T) { … }
func testServerContentTypeSniff(t *testing.T, mode testMode) { … }
func TestServerIssue5953(t *testing.T) { … }
func testServerIssue5953(t *testing.T, mode testMode) { … }
type byteAtATimeReader …
func (b *byteAtATimeReader) Read(p []byte) (n int, err error) { … }
func TestContentTypeWithVariousSources(t *testing.T) { … }
func testContentTypeWithVariousSources(t *testing.T, mode testMode) { … }
func TestSniffWriteSize(t *testing.T) { … }
func testSniffWriteSize(t *testing.T, mode testMode) { … }