mocks

package
v0.13.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextFactoryMock

type ContextFactoryMock struct {
	mock.Mock
}

ContextFactoryMock is an autogenerated mock type for the ContextFactory type

func NewContextFactoryMock

func NewContextFactoryMock(t mockConstructorTestingTNewContextFactoryMock) *ContextFactoryMock

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

func (*ContextFactoryMock) Create

Create provides a mock function with given fields: rw, req

func (*ContextFactoryMock) EXPECT

type ContextFactoryMock_Create_Call

type ContextFactoryMock_Create_Call struct {
	*mock.Call
}

ContextFactoryMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*ContextFactoryMock_Create_Call) Return

func (*ContextFactoryMock_Create_Call) Run

func (*ContextFactoryMock_Create_Call) RunAndReturn

type ContextFactoryMock_Expecter

type ContextFactoryMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*ContextFactoryMock_Expecter) Create

func (_e *ContextFactoryMock_Expecter) Create(rw interface{}, req interface{}) *ContextFactoryMock_Create_Call

Create is a helper method to define mock.On call

  • rw http.ResponseWriter
  • req *http.Request

type ContextMock

type ContextMock struct {
	mock.Mock
}

ContextMock is an autogenerated mock type for the Context type

func NewContextMock

func NewContextMock(t mockConstructorTestingTNewContextMock) *ContextMock

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

func (*ContextMock) AddCookieForUpstream

func (_m *ContextMock) AddCookieForUpstream(name string, value string)

AddCookieForUpstream provides a mock function with given fields: name, value

func (*ContextMock) AddHeaderForUpstream

func (_m *ContextMock) AddHeaderForUpstream(name string, value string)

AddHeaderForUpstream provides a mock function with given fields: name, value

func (*ContextMock) AppContext

func (_m *ContextMock) AppContext() context.Context

AppContext provides a mock function with given fields:

func (*ContextMock) EXPECT

func (_m *ContextMock) EXPECT() *ContextMock_Expecter

func (*ContextMock) Finalize

func (_m *ContextMock) Finalize(_a0 rule.Backend) error

Finalize provides a mock function with given fields: _a0

func (*ContextMock) Request

func (_m *ContextMock) Request() *heimdall.Request

Request provides a mock function with given fields:

func (*ContextMock) SetPipelineError

func (_m *ContextMock) SetPipelineError(err error)

SetPipelineError provides a mock function with given fields: err

func (*ContextMock) Signer

func (_m *ContextMock) Signer() heimdall.JWTSigner

Signer provides a mock function with given fields:

type ContextMock_AddCookieForUpstream_Call

type ContextMock_AddCookieForUpstream_Call struct {
	*mock.Call
}

ContextMock_AddCookieForUpstream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCookieForUpstream'

func (*ContextMock_AddCookieForUpstream_Call) Return

func (*ContextMock_AddCookieForUpstream_Call) Run

func (*ContextMock_AddCookieForUpstream_Call) RunAndReturn

type ContextMock_AddHeaderForUpstream_Call

type ContextMock_AddHeaderForUpstream_Call struct {
	*mock.Call
}

ContextMock_AddHeaderForUpstream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHeaderForUpstream'

func (*ContextMock_AddHeaderForUpstream_Call) Return

func (*ContextMock_AddHeaderForUpstream_Call) Run

func (*ContextMock_AddHeaderForUpstream_Call) RunAndReturn

type ContextMock_AppContext_Call

type ContextMock_AppContext_Call struct {
	*mock.Call
}

ContextMock_AppContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppContext'

func (*ContextMock_AppContext_Call) Return

func (*ContextMock_AppContext_Call) Run

func (*ContextMock_AppContext_Call) RunAndReturn

type ContextMock_Expecter

type ContextMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*ContextMock_Expecter) AddCookieForUpstream

func (_e *ContextMock_Expecter) AddCookieForUpstream(name interface{}, value interface{}) *ContextMock_AddCookieForUpstream_Call

AddCookieForUpstream is a helper method to define mock.On call

  • name string
  • value string

func (*ContextMock_Expecter) AddHeaderForUpstream

func (_e *ContextMock_Expecter) AddHeaderForUpstream(name interface{}, value interface{}) *ContextMock_AddHeaderForUpstream_Call

AddHeaderForUpstream is a helper method to define mock.On call

  • name string
  • value string

func (*ContextMock_Expecter) AppContext

AppContext is a helper method to define mock.On call

func (*ContextMock_Expecter) Finalize

func (_e *ContextMock_Expecter) Finalize(_a0 interface{}) *ContextMock_Finalize_Call

Finalize is a helper method to define mock.On call

  • _a0 rule.Backend

func (*ContextMock_Expecter) Request

Request is a helper method to define mock.On call

func (*ContextMock_Expecter) SetPipelineError

func (_e *ContextMock_Expecter) SetPipelineError(err interface{}) *ContextMock_SetPipelineError_Call

SetPipelineError is a helper method to define mock.On call

  • err error

func (*ContextMock_Expecter) Signer

Signer is a helper method to define mock.On call

type ContextMock_Finalize_Call

type ContextMock_Finalize_Call struct {
	*mock.Call
}

ContextMock_Finalize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finalize'

func (*ContextMock_Finalize_Call) Return

func (*ContextMock_Finalize_Call) Run

func (*ContextMock_Finalize_Call) RunAndReturn

type ContextMock_Request_Call

type ContextMock_Request_Call struct {
	*mock.Call
}

ContextMock_Request_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Request'

func (*ContextMock_Request_Call) Return

func (*ContextMock_Request_Call) Run

func (*ContextMock_Request_Call) RunAndReturn

func (_c *ContextMock_Request_Call) RunAndReturn(run func() *heimdall.Request) *ContextMock_Request_Call

type ContextMock_SetPipelineError_Call

type ContextMock_SetPipelineError_Call struct {
	*mock.Call
}

ContextMock_SetPipelineError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPipelineError'

func (*ContextMock_SetPipelineError_Call) Return

func (*ContextMock_SetPipelineError_Call) Run

func (*ContextMock_SetPipelineError_Call) RunAndReturn

type ContextMock_Signer_Call

type ContextMock_Signer_Call struct {
	*mock.Call
}

ContextMock_Signer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signer'

func (*ContextMock_Signer_Call) Return

func (*ContextMock_Signer_Call) Run

func (_c *ContextMock_Signer_Call) Run(run func()) *ContextMock_Signer_Call

func (*ContextMock_Signer_Call) RunAndReturn

func (_c *ContextMock_Signer_Call) RunAndReturn(run func() heimdall.JWTSigner) *ContextMock_Signer_Call

Jump to

Keyboard shortcuts

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