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 GreaterThan[T Numeric](expected T) Matcher[T]
- func GreaterThanOrEqualTo[T Numeric](expected T) Matcher[T]
- func Kind(expected reflect.Kind) Matcher[any]
- func LessThan[T Numeric](expected T) Matcher[T]
- func LessThanOrEqualTo[T Numeric](expected 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 NotKind(expected reflect.Kind) Matcher[any]
- 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]
- type Numeric
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 GreaterThan ¶ added in v2.4.1
func GreaterThan[T Numeric](expected T) Matcher[T]
func GreaterThanOrEqualTo ¶ added in v2.4.1
func GreaterThanOrEqualTo[T Numeric](expected T) Matcher[T]
func LessThanOrEqualTo ¶ added in v2.4.1
func LessThanOrEqualTo[T Numeric](expected T) Matcher[T]
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 ¶
type Numeric ¶ added in v2.4.1
type Numeric interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.