testutil

package
v0.0.0-...-5d631fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertImagesEqual

func AssertImagesEqual(t T, expectedImg image.Image, actualImg image.Image)

func LoadTestImage

func LoadTestImage(t T, imgFile string) image.Image

Types

type T

type T interface {
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
}

T is an interface to abstract testing.T. This lets us test failure conditions of test infrastructure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL