Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConnectionRefused ¶ added in v2.10.0
IsConnectionRefused attempts to determine if the given error was caused by a failure to establish a connection.
Types ¶
type ExpectedError ¶ added in v2.10.0
type ExpectedError struct {
// contains filtered or unexported fields
}
ExpectedError defines the expectation error
func (*ExpectedError) Details ¶ added in v2.10.0
func (ee *ExpectedError) Details() []any
Details returns the error details
func (*ExpectedError) Error ¶ added in v2.10.0
func (ee *ExpectedError) Error() string
func (*ExpectedError) Unwrap ¶ added in v2.10.0
func (ee *ExpectedError) Unwrap() error
type MockChecker ¶
MockChecker is the struct that mocks the Checker.
func (*MockChecker) Check ¶
func (mc *MockChecker) Check(ctx context.Context) error
Check mocks the checker's check
func (*MockChecker) Identity ¶
func (mc *MockChecker) Identity() (string, error)
Identity mocks the checker's identity
Click to show internal directories.
Click to hide internal directories.