Documentation ¶
Index ¶
- func PanicCatcher(action func()) (thePanic interface{})
- type Matcher
- type MatcherImplementation
- type MessageProvider
- type Wrapper
- func (a Wrapper) Fail(format string, args ...interface{})
- func (a Wrapper) Logf(format string, args ...interface{})
- func (a Wrapper) That(actual interface{}, matcher Matcher, reasonFormat string, ...)
- func (a Wrapper) ThatEventually(ctx context.Context, actual func() interface{}, matcher Matcher, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PanicCatcher ¶ added in v1.1.0
func PanicCatcher(action func()) (thePanic interface{})
Types ¶
type Matcher ¶
func CreateMatcher ¶ added in v0.3.0
func CreateMatcher(match MatcherImplementation, message MessageProvider) Matcher
Helper functions
func CreateNotMatcher ¶ added in v0.3.0
func CreateNotMatcher(match MatcherImplementation, message MessageProvider) Matcher
type MatcherImplementation ¶ added in v0.3.0
type MatcherImplementation func(actual interface{}) bool
type MessageProvider ¶ added in v0.3.0
type MessageProvider func(actual interface{}) string
Click to show internal directories.
Click to hide internal directories.