mocks

package
v0.0.0-...-8f7c90a Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TroubleMaker

type TroubleMaker struct {
	mock.Mock
}

TroubleMaker is an autogenerated mock type for the TroubleMaker type

func NewTroubleMaker

func NewTroubleMaker(t mockConstructorTestingTNewTroubleMaker) *TroubleMaker

NewTroubleMaker creates a new instance of TroubleMaker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TroubleMaker) NewTrouble

func (_m *TroubleMaker) NewTrouble(reason string) error

NewTrouble provides a mock function with given fields: reason

type TroubleMakerSetter

type TroubleMakerSetter struct {
	mock.Mock
}

TroubleMakerSetter is an autogenerated mock type for the TroubleMakerSetter type

func NewTroubleMakerSetter

func NewTroubleMakerSetter(t mockConstructorTestingTNewTroubleMakerSetter) *TroubleMakerSetter

NewTroubleMakerSetter creates a new instance of TroubleMakerSetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TroubleMakerSetter) Execute

Execute provides a mock function with given fields: _a0

type ValidationError

type ValidationError struct {
	mock.Mock
}

ValidationError is an autogenerated mock type for the ValidationError type

func NewValidationError

func NewValidationError(t mockConstructorTestingTNewValidationError) *ValidationError

NewValidationError creates a new instance of ValidationError. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ValidationError) Cause

func (_m *ValidationError) Cause() error

Cause provides a mock function with given fields:

func (*ValidationError) ErrorName

func (_m *ValidationError) ErrorName() string

ErrorName provides a mock function with given fields:

func (*ValidationError) Field

func (_m *ValidationError) Field() string

Field provides a mock function with given fields:

func (*ValidationError) Key

func (_m *ValidationError) Key() bool

Key provides a mock function with given fields:

func (*ValidationError) Reason

func (_m *ValidationError) Reason() string

Reason provides a mock function with given fields:

type ValidationMultiError

type ValidationMultiError struct {
	mock.Mock
}

ValidationMultiError is an autogenerated mock type for the ValidationMultiError type

func NewValidationMultiError

func NewValidationMultiError(t mockConstructorTestingTNewValidationMultiError) *ValidationMultiError

NewValidationMultiError creates a new instance of ValidationMultiError. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ValidationMultiError) AllErrors

func (_m *ValidationMultiError) AllErrors() []error

AllErrors provides a mock function with given fields:

func (*ValidationMultiError) Error

func (_m *ValidationMultiError) Error() string

Error provides a mock function with given fields:

Jump to

Keyboard shortcuts

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