test_helpers

package
v0.0.0-...-4db4b9c Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FloatMargin = 0.0001

Variables

This section is empty.

Functions

func EqualFloat32

func EqualFloat32(expectedValue float32) types.GomegaMatcher

func EqualMat4x4

func EqualMat4x4(expectedValue math.Mat4x4) types.GomegaMatcher

func HaveVec2Coords

func HaveVec2Coords(expectedX, expectedY float32) types.GomegaMatcher

func HaveVec3Coords

func HaveVec3Coords(expectedX, expectedY, expectedZ float32) types.GomegaMatcher

func HaveVec4Coords

func HaveVec4Coords(expectedX, expectedY, expectedZ, expectedW float32) types.GomegaMatcher

func QuickMatcher

func QuickMatcher(handler MatchHandler) types.GomegaMatcher

Types

type MatchHandler

type MatchHandler func(value interface{}) (MatchStatus, error)

type MatchStatus

type MatchStatus struct {
	Success                bool
	FailureMessage         string
	NegativeFailureMessage string
}

func FailureMatchStatus

func FailureMatchStatus(failureMessage, negativeFailureMessage string) MatchStatus

func SuccessMatchStatus

func SuccessMatchStatus() MatchStatus

Jump to

Keyboard shortcuts

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