testutils

package
v0.0.0-...-4751963 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAllFunc

func CheckAllFunc(c TestCaseAll) func(images.Image) error

func CheckDistortion

func CheckDistortion(blob []byte, reffn string, tol float64, resfn string) (err error)

func CheckFormatFunc

func CheckFormatFunc(c FormatTestCase) func(images.Image) error

func CheckImage

func CheckImage(blob []byte, c TestCase, tol float64, f func(images.Image) error) (err error)

func CheckSizeFunc

func CheckSizeFunc(c SizeTestCase) func(images.Image) error

func FormatTest

func FormatTest(c FormatTestCase, blob []byte, tolerance float64) error

func RemoveContents

func RemoveContents(dir string) error

func SizeTest

func SizeTest(c SizeTestCase, blob []byte, tolerance float64) error

func TestAll

func TestAll(c TestCaseAll, blob []byte, tolerance float64) error

Types

type FormatTestCase

type FormatTestCase struct {
	TestCase
	Format string
}

type SizeTestCase

type SizeTestCase struct {
	TestCase
	W, H int
}

type TestCase

type TestCase struct {
	Testfn, Reffn, Resfn string
}

type TestCaseAll

type TestCaseAll struct {
	TestCase
	Format string
	W, H   int
}

Jump to

Keyboard shortcuts

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