jsonchecker

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Retries    = 13
	RetryDelay = 3 * time.Second
)

Functions

func JsonCheck

func JsonCheck(jsonFile *os.File, checker ec.MultiEventChecker, log *slog.Logger) error

JsonCheck checks a JSON string using the new eventchecker library.

func JsonTestCheck

func JsonTestCheck(t *testing.T, checker ec.MultiEventChecker) error

JsonTestCheck checks a JSON file

func JsonTestCheckExpect added in v0.8.4

func JsonTestCheckExpect(t *testing.T, checker ec.MultiEventChecker, expectCheckerFailure bool) error

func JsonTestCheckExpectWithKeep added in v1.5.0

func JsonTestCheckExpectWithKeep(t *testing.T, checker ec.MultiEventChecker, expectCheckerFailure, keep bool) error

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

func (*DebugError) Error

func (e *DebugError) Error() string

Error returns the error message

func (*DebugError) Unwrap

func (e *DebugError) Unwrap() error

Unwrap returns the original error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL