mocks

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 5 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 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) 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) 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_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

type JWTSignerMock

type JWTSignerMock struct {
	mock.Mock
}

JWTSignerMock is an autogenerated mock type for the JWTSigner type

func NewJWTSignerMock

func NewJWTSignerMock(t mockConstructorTestingTNewJWTSignerMock) *JWTSignerMock

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

func (*JWTSignerMock) EXPECT

func (_m *JWTSignerMock) EXPECT() *JWTSignerMock_Expecter

func (*JWTSignerMock) Hash

func (_m *JWTSignerMock) Hash() []byte

Hash provides a mock function with given fields:

func (*JWTSignerMock) Keys

func (_m *JWTSignerMock) Keys() []jose.JSONWebKey

Keys provides a mock function with given fields:

func (*JWTSignerMock) Sign

func (_m *JWTSignerMock) Sign(sub string, ttl time.Duration, claims map[string]interface{}) (string, error)

Sign provides a mock function with given fields: sub, ttl, claims

type JWTSignerMock_Expecter

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

func (*JWTSignerMock_Expecter) Hash

Hash is a helper method to define mock.On call

func (*JWTSignerMock_Expecter) Keys

Keys is a helper method to define mock.On call

func (*JWTSignerMock_Expecter) Sign

func (_e *JWTSignerMock_Expecter) Sign(sub interface{}, ttl interface{}, claims interface{}) *JWTSignerMock_Sign_Call

Sign is a helper method to define mock.On call

  • sub string
  • ttl time.Duration
  • claims map[string]interface{}

type JWTSignerMock_Hash_Call

type JWTSignerMock_Hash_Call struct {
	*mock.Call
}

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

func (*JWTSignerMock_Hash_Call) Return

func (*JWTSignerMock_Hash_Call) Run

func (_c *JWTSignerMock_Hash_Call) Run(run func()) *JWTSignerMock_Hash_Call

func (*JWTSignerMock_Hash_Call) RunAndReturn

func (_c *JWTSignerMock_Hash_Call) RunAndReturn(run func() []byte) *JWTSignerMock_Hash_Call

type JWTSignerMock_Keys_Call

type JWTSignerMock_Keys_Call struct {
	*mock.Call
}

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

func (*JWTSignerMock_Keys_Call) Return

func (*JWTSignerMock_Keys_Call) Run

func (_c *JWTSignerMock_Keys_Call) Run(run func()) *JWTSignerMock_Keys_Call

func (*JWTSignerMock_Keys_Call) RunAndReturn

func (_c *JWTSignerMock_Keys_Call) RunAndReturn(run func() []jose.JSONWebKey) *JWTSignerMock_Keys_Call

type JWTSignerMock_Sign_Call

type JWTSignerMock_Sign_Call struct {
	*mock.Call
}

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

func (*JWTSignerMock_Sign_Call) Return

func (*JWTSignerMock_Sign_Call) Run

func (_c *JWTSignerMock_Sign_Call) Run(run func(sub string, ttl time.Duration, claims map[string]interface{})) *JWTSignerMock_Sign_Call

func (*JWTSignerMock_Sign_Call) RunAndReturn

func (_c *JWTSignerMock_Sign_Call) RunAndReturn(run func(string, time.Duration, map[string]interface{}) (string, error)) *JWTSignerMock_Sign_Call

type RequestFunctionsMock

type RequestFunctionsMock struct {
	mock.Mock
}

RequestFunctionsMock is an autogenerated mock type for the RequestFunctions type

func NewRequestFunctionsMock

func NewRequestFunctionsMock(t mockConstructorTestingTNewRequestFunctionsMock) *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.

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