Documentation ¶
Index ¶
- func Calling[T any](o T, err error) result[T]
- func Close(c io.Closer, msg ...interface{})
- func Defer(f func() error, msg ...interface{})
- func DeferWithOffset(o int, f func() error, msg ...interface{})
- func ExpectError(values ...interface{}) types.Assertion
- func Must[T any](o T, err error) T
- func Must2[T any, V any](a T, b V, err error) (T, V)
- func MustBeNonNil[T any](o T) T
- func MustBeSuccessful(err error)
- func MustBeSuccessfulWithOffset(offset int, err error)
- func MustFailWithMessage(err error, msg string)
- func MustWithOffset[T any](offset int, res result[T]) T
- func R[T any](o T, err error) result[T]
- func StringEqualTrimmedWithContext(expected string, subst ...map[string]string) types.GomegaMatcher
- func StringEqualWithContext(expected string, subst ...map[string]string) types.GomegaMatcher
- type StringEqualMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeferWithOffset ¶
func ExpectError ¶
func MustBeNonNil ¶
func MustBeNonNil[T any](o T) T
func MustBeSuccessful ¶
func MustBeSuccessful(err error)
func MustFailWithMessage ¶
func MustWithOffset ¶
func StringEqualTrimmedWithContext ¶
func StringEqualTrimmedWithContext(expected string, subst ...map[string]string) types.GomegaMatcher
StringEqualTrimmedWithContext compares two trimmed strings and provides the complete actual value as error context. If value mappings are given, the expected string is evaluated by envsubst, first. It is an error for actual to be nil. Use BeNil() instead.
func StringEqualWithContext ¶
func StringEqualWithContext(expected string, subst ...map[string]string) types.GomegaMatcher
StringEqualWithContext compares two strings and provides the complete actual value as error context. If value mappings are given, the expected string is evaluated by envsubst, first. It is an error for actual to be nil. Use BeNil() instead.
Types ¶
type StringEqualMatcher ¶
func (*StringEqualMatcher) FailureMessage ¶
func (matcher *StringEqualMatcher) FailureMessage(actual interface{}) (message string)
func (*StringEqualMatcher) Match ¶
func (matcher *StringEqualMatcher) Match(actual interface{}) (success bool, err error)
func (*StringEqualMatcher) NegatedFailureMessage ¶
func (matcher *StringEqualMatcher) NegatedFailureMessage(actual interface{}) (message string)
Click to show internal directories.
Click to hide internal directories.