test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(t *testing.T, err error)

Check ensures that err is nil, ending the execution if it's not the case.

func CheckB

func CheckB(b *testing.B, err error)

CheckB ensures that err is nil, ending the execution if it's not the case.

func Diff

func Diff(m0, m1 image.Image) error

Diff compares 2 images and return an error if they differ.

func LoadPNG

func LoadPNG(filename string) (image.Image, error)

LoadPNG loads and returns the PNG image located at filename.

func SavePNG

func SavePNG(img image.Image, filename string) error

SavePNG saves img as a PNG located at filename.

Types

This section is empty.

Jump to

Keyboard shortcuts

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