testutils

package
v0.0.0-...-309fd15 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Delta = 0.0000001

Variables

This section is empty.

Functions

func CompareOutputImages

func CompareOutputImages(testname string, t *testing.T)

CompareOutputImages is a utility method used by the graphics modules to compare output of tests with expected output.

func FilesAreEqual

func FilesAreEqual(a, b string) (bool, error)

FileAreEqual returns true if the two given files are the same. It does this by calculating the md5 checksum of each file and comparing. If either of the files does not exist, this returns false, and an error.

func FloatsAreEqual

func FloatsAreEqual(x, y float64) bool

FloatsAreEqual returns true if the two given float64 values are within Delta from each other.

Types

This section is empty.

Jump to

Keyboard shortcuts

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