Documentation
¶
Index ¶
- type Matcher
- func All(expected ...any) Matcher
- func Any() Matcher
- func Between(min, max any) Matcher
- func BetweenStrict(min, max any) Matcher
- func Contains(value any) Matcher
- func ContainsKey(key any) Matcher
- func ContainsKeyValue(key, value any) Matcher
- func Equal(expected any, options ...cmp.Option) Matcher
- func Fn(fn any) Matcher
- func If(condition Matcher, branches ...any) Matcher
- func Len(len any) Matcher
- func Map(keyAndValues ...any) Matcher
- func MapExact(keyAndValues ...any) Matcher
- func Method(method string, actual ...any) Matcher
- func None() Matcher
- func Not(expected any) Matcher
- func Prefix(prefix any) Matcher
- func Regexp(expected any) Matcher
- func Same(expected any) Matcher
- func SamePointer(expected any) Matcher
- func Suffix(suffix any) Matcher
- func ToMatcher(expected any) Matcher
- func ToMatchers(expected []any) []Matcher
- type SimpleMatcher
- type StatefulMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
func BetweenStrict ¶
func ContainsKey ¶
func ContainsKeyValue ¶
func SamePointer ¶
func ToMatchers ¶
type SimpleMatcher ¶
type StatefulMatcher ¶
func AnyOf ¶
func AnyOf(expected ...any) StatefulMatcher
func AtLeastOf ¶
func AtLeastOf(n int, expected ...any) StatefulMatcher
func AtMostOf ¶
func AtMostOf(n int, expected ...any) StatefulMatcher
func OneOf ¶
func OneOf(expected ...any) StatefulMatcher
Click to show internal directories.
Click to hide internal directories.