Documentation ¶
Index ¶
- func Close(c io.Closer, msg ...interface{})
- func Must[T any](o T, err error) T
- func MustBeNonNil[T any](o T) T
- func MustBeSuccessful(err error)
- func MustFailWithMessage(err error, msg string)
- func StringEqualTrimmedWithContext(expected string) types.GomegaMatcher
- func StringEqualWithContext(expected string) types.GomegaMatcher
- type StringEqualMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustBeNonNil ¶
func MustBeNonNil[T any](o T) T
func MustBeSuccessful ¶
func MustBeSuccessful(err error)
func MustFailWithMessage ¶
func StringEqualTrimmedWithContext ¶
func StringEqualTrimmedWithContext(expected string) types.GomegaMatcher
StringEqualTrimmedWithContext compares two trimmed strings and provides the complete actual value as error context. It is an error for actual to be nil. Use BeNil() instead.
func StringEqualWithContext ¶
func StringEqualWithContext(expected string) types.GomegaMatcher
StringEqualWithContext compares two strings and provides the complete actual value as error context. 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.