mocks

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandlerFunc

type AuthHandlerFunc struct {
	mock.Mock
}

AuthHandlerFunc is an autogenerated mock type for the AuthHandlerFunc type

func NewAuthHandlerFunc

func NewAuthHandlerFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthHandlerFunc

NewAuthHandlerFunc creates a new instance of AuthHandlerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AuthHandlerFunc) Execute

func (_m *AuthHandlerFunc) Execute(req *http.Request) error

Execute provides a mock function with given fields: req

type InputHandlerFunc

type InputHandlerFunc struct {
	mock.Mock
}

InputHandlerFunc is an autogenerated mock type for the InputHandlerFunc type

func NewInputHandlerFunc

func NewInputHandlerFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *InputHandlerFunc

NewInputHandlerFunc creates a new instance of InputHandlerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*InputHandlerFunc) Execute

func (_m *InputHandlerFunc) Execute(in *bytes.Buffer) error

Execute provides a mock function with given fields: in

type MarshallerFunc added in v0.1.26

type MarshallerFunc struct {
	mock.Mock
}

MarshallerFunc is an autogenerated mock type for the MarshallerFunc type

func NewMarshallerFunc added in v0.1.26

func NewMarshallerFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MarshallerFunc

NewMarshallerFunc creates a new instance of MarshallerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MarshallerFunc) Execute added in v0.1.26

func (_m *MarshallerFunc) Execute(b []byte) (interface{}, error)

Execute provides a mock function with given fields: b

type OutputHandlerFunc

type OutputHandlerFunc struct {
	mock.Mock
}

OutputHandlerFunc is an autogenerated mock type for the OutputHandlerFunc type

func NewOutputHandlerFunc

func NewOutputHandlerFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *OutputHandlerFunc

NewOutputHandlerFunc creates a new instance of OutputHandlerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OutputHandlerFunc) Execute

func (_m *OutputHandlerFunc) Execute(out *bytes.Buffer) error

Execute provides a mock function with given fields: out

type ParamBuilderFunc

type ParamBuilderFunc struct {
	mock.Mock
}

ParamBuilderFunc is an autogenerated mock type for the ParamBuilderFunc type

func NewParamBuilderFunc

func NewParamBuilderFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *ParamBuilderFunc

NewParamBuilderFunc creates a new instance of ParamBuilderFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ParamBuilderFunc) Execute

func (_m *ParamBuilderFunc) Execute() map[string]string

Execute provides a mock function with given fields:

type ParamReader added in v0.1.26

type ParamReader struct {
	mock.Mock
}

ParamReader is an autogenerated mock type for the ParamReader type

func NewParamReader added in v0.1.26

func NewParamReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ParamReader

NewParamReader creates a new instance of ParamReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ParamReader) Params added in v0.1.26

func (_m *ParamReader) Params() ([]v1beta1.ParamSpec, error)

Params provides a mock function with given fields:

type ParamResolver added in v0.1.26

type ParamResolver struct {
	mock.Mock
}

ParamResolver is an autogenerated mock type for the ParamResolver type

func NewParamResolver added in v0.1.26

func NewParamResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *ParamResolver

NewParamResolver creates a new instance of ParamResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ParamResolver) EnabledFor added in v0.1.26

func (_m *ParamResolver) EnabledFor(opt pkg.ResolverOption) bool

EnabledFor provides a mock function with given fields: opt

func (*ParamResolver) Lookup added in v0.1.26

func (_m *ParamResolver) Lookup(p string) (string, bool)

Lookup provides a mock function with given fields: p

func (*ParamResolver) Supports added in v0.1.26

func (_m *ParamResolver) Supports() pkg.ResolverOption

Supports provides a mock function with given fields:

type ResponseHandlerFunc

type ResponseHandlerFunc struct {
	mock.Mock
}

ResponseHandlerFunc is an autogenerated mock type for the ResponseHandlerFunc type

func NewResponseHandlerFunc

func NewResponseHandlerFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResponseHandlerFunc

NewResponseHandlerFunc creates a new instance of ResponseHandlerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResponseHandlerFunc) Execute

func (_m *ResponseHandlerFunc) Execute(reader io.ReadCloser) error

Execute provides a mock function with given fields: reader

type ReturnCodeHandlerFunc

type ReturnCodeHandlerFunc struct {
	mock.Mock
}

ReturnCodeHandlerFunc is an autogenerated mock type for the ReturnCodeHandlerFunc type

func NewReturnCodeHandlerFunc

func NewReturnCodeHandlerFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReturnCodeHandlerFunc

NewReturnCodeHandlerFunc creates a new instance of ReturnCodeHandlerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReturnCodeHandlerFunc) Execute

func (_m *ReturnCodeHandlerFunc) Execute(code int) error

Execute provides a mock function with given fields: code

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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