Documentation ¶
Index ¶
- Constants
- func EqualFloat32(expectedValue float32) types.GomegaMatcher
- func EqualMat4x4(expectedValue math.Mat4x4) types.GomegaMatcher
- func HaveVec2Coords(expectedX, expectedY float32) types.GomegaMatcher
- func HaveVec3Coords(expectedX, expectedY, expectedZ float32) types.GomegaMatcher
- func HaveVec4Coords(expectedX, expectedY, expectedZ, expectedW float32) types.GomegaMatcher
- func QuickMatcher(handler MatchHandler) types.GomegaMatcher
- type MatchHandler
- type MatchStatus
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 ¶
func FailureMatchStatus ¶
func FailureMatchStatus(failureMessage, negativeFailureMessage string) MatchStatus
func SuccessMatchStatus ¶
func SuccessMatchStatus() MatchStatus
Click to show internal directories.
Click to hide internal directories.