Documentation ¶
Index ¶
- Variables
- func DeepEqualTo(expected interface{}) Matcher
- func EqualTo(expected interface{}) Matcher
- func EqualToC(expected interface{}, equality CustomEquality) Matcher
- func EquivalentTo(expected interface{}) Matcher
- func EquivalentToC(expected interface{}, equality CustomEquality) Matcher
- func NotDeepEqualTo(expected interface{}) Matcher
- func NotEqualTo(expected interface{}) Matcher
- func NotEqualToC(expected interface{}, equality CustomEquality) Matcher
- func NotEquivalentTo(expected interface{}) Matcher
- func NotEquivalentToC(expected interface{}, equality CustomEquality) Matcher
- func NotType(expected reflect.Type) Matcher
- func Type(expected reflect.Type) Matcher
- type CustomEquality
Constants ¶
This section is empty.
Variables ¶
View Source
var False = CreateMatcher(equalsMatch(false), messages.ExpectedButActual(false))
View Source
var Nil = CreateMatcher(nilMatch, messages.ExpectedButActual(nil))
View Source
var NotNil = CreateNotMatcher(nilMatch, messages.ExpectedOtherThan(nil))
View Source
var True = CreateMatcher(equalsMatch(true), messages.ExpectedButActual(true))
Functions ¶
func DeepEqualTo ¶
func DeepEqualTo(expected interface{}) Matcher
func EqualToC ¶
func EqualToC(expected interface{}, equality CustomEquality) Matcher
func EquivalentTo ¶
func EquivalentTo(expected interface{}) Matcher
func EquivalentToC ¶
func EquivalentToC(expected interface{}, equality CustomEquality) Matcher
func NotDeepEqualTo ¶
func NotDeepEqualTo(expected interface{}) Matcher
func NotEqualTo ¶
func NotEqualTo(expected interface{}) Matcher
func NotEqualToC ¶
func NotEqualToC(expected interface{}, equality CustomEquality) Matcher
func NotEquivalentTo ¶
func NotEquivalentTo(expected interface{}) Matcher
func NotEquivalentToC ¶
func NotEquivalentToC(expected interface{}, equality CustomEquality) Matcher
Types ¶
type CustomEquality ¶
type CustomEquality func(act, exp interface{}) bool
Click to show internal directories.
Click to hide internal directories.