go/src/image/gif/writer_test.go

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

func readGIF(filename string) (*GIF, error) {}

func delta(u0, u1 uint32) int64 {}

// averageDelta returns the average delta in RGB space. The two images must
// have the same bounds.
func averageDelta(m0, m1 image.Image) int64 {}

// averageDeltaBound returns the average delta in RGB space. The average delta is
// calculated in the specified bounds.
func averageDeltaBound(m0, m1 image.Image, b0, b1 image.Rectangle) int64 {}

var _

var testCase

func TestWriter(t *testing.T) {}

func TestSubImage(t *testing.T) {}

// palettesEqual reports whether two color.Palette values are equal, ignoring
// any trailing opaque-black palette entries.
func palettesEqual(p, q color.Palette) bool {}

var frames

func testEncodeAll(t *testing.T, go1Dot5Fields bool, useGlobalColorModel bool) {}

func TestEncodeAllGo1Dot4(t *testing.T)                 {}

func TestEncodeAllGo1Dot5(t *testing.T)                 {}

func TestEncodeAllGo1Dot5GlobalColorModel(t *testing.T) {}

func TestEncodeMismatchDelay(t *testing.T) {}

func TestEncodeZeroGIF(t *testing.T) {}

func TestEncodeAllFramesOutOfBounds(t *testing.T) {}

func TestEncodeNonZeroMinPoint(t *testing.T) {}

func TestEncodeImplicitConfigSize(t *testing.T) {}

func TestEncodePalettes(t *testing.T) {}

func TestEncodeBadPalettes(t *testing.T) {}

func TestColorTablesMatch(t *testing.T) {}

func TestEncodeCroppedSubImages(t *testing.T) {}

type offsetImage

func (i offsetImage) Bounds() image.Rectangle {}

func TestEncodeWrappedImage(t *testing.T) {}

func BenchmarkEncodeRandomPaletted(b *testing.B) {}

func BenchmarkEncodeRandomRGBA(b *testing.B) {}

func BenchmarkEncodeRealisticPaletted(b *testing.B) {}

func BenchmarkEncodeRealisticRGBA(b *testing.B) {}