Documentation
¶
Index ¶
- Variables
- func JsonCheck(jsonFile *os.File, checker ec.MultiEventChecker, log *slog.Logger) error
- func JsonTestCheck(t *testing.T, checker ec.MultiEventChecker) error
- func JsonTestCheckExpect(t *testing.T, checker ec.MultiEventChecker, expectCheckerFailure bool) error
- func JsonTestCheckExpectWithKeep(t *testing.T, checker ec.MultiEventChecker, expectCheckerFailure, keep bool) error
- type DebugError
- type JsonEOFError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Retries = 13 RetryDelay = 3 * time.Second )
Functions ¶
func JsonTestCheck ¶
func JsonTestCheck(t *testing.T, checker ec.MultiEventChecker) error
JsonTestCheck checks a JSON file
func JsonTestCheckExpect ¶ added in v0.8.4
func JsonTestCheckExpectWithKeep ¶ added in v1.5.0
Types ¶
type DebugError ¶
type DebugError struct {
// contains filtered or unexported fields
}
DebugError is an error that will create a debug output message
func NewDebugError ¶
func NewDebugError(err error) *DebugError
type JsonEOFError ¶ added in v1.5.0
type JsonEOFError struct {
// contains filtered or unexported fields
}
JsonEOFError is a type of error where we went over all the events and there was no match.
The reason to have a special error is that there are cases where the events we are looking for might not have been processed yet. In these cases, we need to retry.
func (*JsonEOFError) Error ¶ added in v1.5.0
func (e *JsonEOFError) Error() string
Error returns the error message
func (*JsonEOFError) Unwrap ¶ added in v1.5.0
func (e *JsonEOFError) Unwrap() error
Unwrap returns the original error
Click to show internal directories.
Click to hide internal directories.