mocks

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextMock

type ContextMock struct {
	mock.Mock
}

ContextMock is an autogenerated mock type for the Context type

func NewContextMock

func NewContextMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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) Outputs

func (_m *ContextMock) Outputs() map[string]interface{}

Outputs provides a mock function with given fields:

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

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) Outputs

Outputs is a helper method to define mock.On call

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

type ContextMock_Outputs_Call

type ContextMock_Outputs_Call struct {
	*mock.Call
}

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

func (*ContextMock_Outputs_Call) Return

func (_c *ContextMock_Outputs_Call) Return(_a0 map[string]interface{}) *ContextMock_Outputs_Call

func (*ContextMock_Outputs_Call) Run

func (*ContextMock_Outputs_Call) RunAndReturn

func (_c *ContextMock_Outputs_Call) RunAndReturn(run func() map[string]interface{}) *ContextMock_Outputs_Call

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 RequestFunctionsMock

type RequestFunctionsMock struct {
	mock.Mock
}

RequestFunctionsMock is an autogenerated mock type for the RequestFunctions type

func NewRequestFunctionsMock

func NewRequestFunctionsMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RequestFunctionsMock

NewRequestFunctionsMock creates a new instance of RequestFunctionsMock. 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 (*RequestFunctionsMock) Body

func (_m *RequestFunctionsMock) Body() interface{}

Body provides a mock function with given fields:

func (*RequestFunctionsMock) Cookie

func (_m *RequestFunctionsMock) Cookie(name string) string

Cookie provides a mock function with given fields: name

func (*RequestFunctionsMock) EXPECT

func (*RequestFunctionsMock) Header

func (_m *RequestFunctionsMock) Header(name string) string

Header provides a mock function with given fields: name

func (*RequestFunctionsMock) Headers

func (_m *RequestFunctionsMock) Headers() map[string]string

Headers provides a mock function with given fields:

type RequestFunctionsMock_Body_Call

type RequestFunctionsMock_Body_Call struct {
	*mock.Call
}

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

func (*RequestFunctionsMock_Body_Call) Return

func (*RequestFunctionsMock_Body_Call) Run

func (*RequestFunctionsMock_Body_Call) RunAndReturn

func (_c *RequestFunctionsMock_Body_Call) RunAndReturn(run func() interface{}) *RequestFunctionsMock_Body_Call
type RequestFunctionsMock_Cookie_Call struct {
	*mock.Call
}

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

type RequestFunctionsMock_Expecter

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

func (*RequestFunctionsMock_Expecter) Body

Body is a helper method to define mock.On call

func (*RequestFunctionsMock_Expecter) Cookie

Cookie is a helper method to define mock.On call

  • name string

func (*RequestFunctionsMock_Expecter) Header

Header is a helper method to define mock.On call

  • name string

func (*RequestFunctionsMock_Expecter) Headers

Headers is a helper method to define mock.On call

type RequestFunctionsMock_Header_Call

type RequestFunctionsMock_Header_Call struct {
	*mock.Call
}

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

func (*RequestFunctionsMock_Header_Call) Return

func (*RequestFunctionsMock_Header_Call) Run

func (*RequestFunctionsMock_Header_Call) RunAndReturn

type RequestFunctionsMock_Headers_Call

type RequestFunctionsMock_Headers_Call struct {
	*mock.Call
}

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

func (*RequestFunctionsMock_Headers_Call) Return

func (*RequestFunctionsMock_Headers_Call) Run

func (*RequestFunctionsMock_Headers_Call) RunAndReturn

Jump to

Keyboard shortcuts

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