Documentation
¶
Index ¶
- type MockVerifier
- func (m MockVerifier) Equal(t apitest.TestingT, expected, actual any, msgAndArgs ...any) bool
- func (m MockVerifier) Fail(t apitest.TestingT, failureMessage string, msgAndArgs ...any) bool
- func (m MockVerifier) JSONEq(t apitest.TestingT, expected string, actual string, msgAndArgs ...any) bool
- func (m MockVerifier) NoError(t apitest.TestingT, err error, msgAndArgs ...any) bool
- func (m MockVerifier) True(t apitest.TestingT, val bool, msgAndArgs ...any) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockVerifier ¶
type MockVerifier struct {
EqualFn func(t apitest.TestingT, expected, actual any, msgAndArgs ...any) bool
EqualInvoked bool
TrueFn func(t apitest.TestingT, val bool, msgAndArgs ...any) bool
TrueInvoked bool
JSONEqFn func(t apitest.TestingT, expected string, actual string, msgAndArgs ...any) bool
JSONEqInvoked bool
FailFn func(t apitest.TestingT, failureMessage string, msgAndArgs ...any) bool
FailInvoked bool
NoErrorFn func(t apitest.TestingT, err error, msgAndArgs ...any) bool
NoErrorInvoked bool
}
MockVerifier is a mock of the Verifier interface that is used in tests of apitest
func NewVerifier ¶
func NewVerifier() MockVerifier
func (MockVerifier) JSONEq ¶
func (m MockVerifier) JSONEq(t apitest.TestingT, expected string, actual string, msgAndArgs ...any) bool
JSONEq mocks the JSONEq method of the Verifier
Click to show internal directories.
Click to hide internal directories.