go/src/image/png/reader_test.go

var filenames

var filenamesPaletted

var filenamesShort

func readPNG(filename string) (image.Image, error) {}

var fakebKGDs

var fakegAMAs

var fakeIHDRUsings

// An approximation of the sng command-line tool.
func sng(w io.WriteCloser, filename string, png image.Image) {}

func TestReader(t *testing.T) {}

var readerErrors

func TestReaderError(t *testing.T) {}

func TestPalettedDecodeConfig(t *testing.T) {}

func TestInterlaced(t *testing.T) {}

func TestIncompleteIDATOnRowBoundary(t *testing.T) {}

func TestTrailingIDATChunks(t *testing.T) {}

func TestMultipletRNSChunks(t *testing.T) {}

func TestUnknownChunkLengthUnderflow(t *testing.T) {}

func TestPaletted8OutOfRangePixel(t *testing.T) {}

func TestGray8Transparent(t *testing.T) {}

func TestDimensionOverflow(t *testing.T) {}

func TestDecodePalettedWithTransparency(t *testing.T) {}

func benchmarkDecode(b *testing.B, filename string, bytesPerPixel int) {}

func BenchmarkDecodeGray(b *testing.B) {}

func BenchmarkDecodeNRGBAGradient(b *testing.B) {}

func BenchmarkDecodeNRGBAOpaque(b *testing.B) {}

func BenchmarkDecodePaletted(b *testing.B) {}

func BenchmarkDecodeRGB(b *testing.B) {}

func BenchmarkDecodeInterlacing(b *testing.B) {}