Documentation ¶
Index ¶
- Variables
- func DeepEqualTo[T any](expected T) Matcher[T]
- func EqualTo[T any](expected T) Matcher[T]
- func EqualToC[T any](expected T, comparer equality.Comparer[T]) Matcher[T]
- func EquivalentTo[T any](expected []T) Matcher[[]T]
- func EquivalentToC[T any](expected []T, comparer equality.Comparer[T]) Matcher[[]T]
- func ListEqualTo[T any](expected []T) Matcher[[]T]
- func ListEqualToC[T any](expected []T, comparer equality.Comparer[T]) Matcher[[]T]
- func NotDeepEqualTo[T any](expected T) Matcher[T]
- func NotEqualTo[T any](expected T) Matcher[T]
- func NotEqualToC[T any](expected T, comparer equality.Comparer[T]) Matcher[T]
- func NotEquivalentTo[T any](expected []T) Matcher[[]T]
- func NotEquivalentToC[T any](expected []T, comparer equality.Comparer[T]) Matcher[[]T]
- func NotListEqualTo[T any](expected []T) Matcher[[]T]
- func NotListEqualToC[T any](expected []T, comparer equality.Comparer[T]) Matcher[[]T]
- func NotType(expected reflect.Type) Matcher[any]
- func Type(expected reflect.Type) Matcher[any]
Constants ¶
This section is empty.
Variables ¶
View Source
var False = CreateMatcher[bool](equalsMatch(false), messages.ExpectedButActual(false))
View Source
var Nil = CreateMatcher[any](nilMatch, messages.ExpectedButActual[any](nil))
View Source
var NotNil = CreateNotMatcher[any](nilMatch, messages.ExpectedOtherThan[any](nil))
View Source
var True = CreateMatcher[bool](equalsMatch(true), messages.ExpectedButActual(true))
Functions ¶
func DeepEqualTo ¶
func DeepEqualTo[T any](expected T) Matcher[T]
func EquivalentTo ¶
func EquivalentTo[T any](expected []T) Matcher[[]T]
func EquivalentToC ¶
func ListEqualTo ¶
func ListEqualTo[T any](expected []T) Matcher[[]T]
func ListEqualToC ¶
func NotDeepEqualTo ¶
func NotDeepEqualTo[T any](expected T) Matcher[T]
func NotEqualTo ¶
func NotEqualTo[T any](expected T) Matcher[T]
func NotEqualToC ¶
func NotEquivalentTo ¶
func NotEquivalentTo[T any](expected []T) Matcher[[]T]
func NotEquivalentToC ¶
func NotListEqualTo ¶
func NotListEqualTo[T any](expected []T) Matcher[[]T]
func NotListEqualToC ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.