Documentation ¶
Overview ¶
Package test contains defaults and helpers for unit tests in vidar.
Index ¶
Constants ¶
View Source
const ( Timeout = time.Second MockTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BeErrMatcher ¶ added in v0.6.0
type BeErrMatcher struct {
// contains filtered or unexported fields
}
BeErrMatcher matches errors with errors.Is.
func BeErr ¶ added in v0.6.0
func BeErr(err error) *BeErrMatcher
BeErr returns a matcher that matches err using errors.Is.
type T ¶ added in v0.6.0
type T interface { zerolog.TestingLog Cleanup(func()) }
T represents the methods we need from testing types.
Click to show internal directories.
Click to hide internal directories.