Documentation
¶
Index ¶
- func BeEq[T any](expected T) expect.GenericValueMatcher[T]
- func BeFalse() expect.GenericValueMatcher[bool]
- func BeTrue() expect.GenericValueMatcher[bool]
- func StringContains(sub string) expect.GenericValueMatcher[string]
- type BeEqMatcher
- type BeFalseMatcher
- type BeTrueMatcher
- type StringContainsMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeEq ¶
func BeEq[T any](expected T) expect.GenericValueMatcher[T]
func BeFalse ¶
func BeFalse() expect.GenericValueMatcher[bool]
func BeTrue ¶
func BeTrue() expect.GenericValueMatcher[bool]
func StringContains ¶
func StringContains(sub string) expect.GenericValueMatcher[string]
Types ¶
type BeEqMatcher ¶
type BeEqMatcher[T any] struct { // contains filtered or unexported fields }
func (BeEqMatcher[T]) Error ¶
func (it BeEqMatcher[T]) Error(current T, path string) error
func (BeEqMatcher[T]) Match ¶
func (it BeEqMatcher[T]) Match(current T) bool
type BeFalseMatcher ¶
type BeFalseMatcher struct {
}
func (BeFalseMatcher) Match ¶
func (it BeFalseMatcher) Match(current bool) bool
type BeTrueMatcher ¶
type BeTrueMatcher struct {
}
func (BeTrueMatcher) Match ¶
func (it BeTrueMatcher) Match(current bool) bool
type StringContainsMatcher ¶
type StringContainsMatcher struct {
// contains filtered or unexported fields
}
func (StringContainsMatcher) Error ¶
func (it StringContainsMatcher) Error(current string, path string) error
func (StringContainsMatcher) Match ¶
func (it StringContainsMatcher) Match(current string) bool
Click to show internal directories.
Click to hide internal directories.