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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizerMock

type AuthorizerMock struct {
	mock.Mock
}

AuthorizerMock is an autogenerated mock type for the Authorizer type

func NewAuthorizerMock

func NewAuthorizerMock(t mockConstructorTestingTNewAuthorizerMock) *AuthorizerMock

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

func (*AuthorizerMock) ContinueOnError

func (_m *AuthorizerMock) ContinueOnError() bool

ContinueOnError provides a mock function with given fields:

func (*AuthorizerMock) EXPECT

func (*AuthorizerMock) Execute

func (_m *AuthorizerMock) Execute(_a0 heimdall.Context, _a1 *subject.Subject) error

Execute provides a mock function with given fields: _a0, _a1

func (*AuthorizerMock) ID

func (_m *AuthorizerMock) ID() string

ID provides a mock function with given fields:

func (*AuthorizerMock) WithConfig

func (_m *AuthorizerMock) WithConfig(config map[string]interface{}) (authorizers.Authorizer, error)

WithConfig provides a mock function with given fields: config

type AuthorizerMock_ContinueOnError_Call

type AuthorizerMock_ContinueOnError_Call struct {
	*mock.Call
}

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

func (*AuthorizerMock_ContinueOnError_Call) Return

func (*AuthorizerMock_ContinueOnError_Call) Run

func (*AuthorizerMock_ContinueOnError_Call) RunAndReturn

type AuthorizerMock_Execute_Call

type AuthorizerMock_Execute_Call struct {
	*mock.Call
}

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

func (*AuthorizerMock_Execute_Call) Return

func (*AuthorizerMock_Execute_Call) Run

func (*AuthorizerMock_Execute_Call) RunAndReturn

type AuthorizerMock_Expecter

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

func (*AuthorizerMock_Expecter) ContinueOnError

ContinueOnError is a helper method to define mock.On call

func (*AuthorizerMock_Expecter) Execute

func (_e *AuthorizerMock_Expecter) Execute(_a0 interface{}, _a1 interface{}) *AuthorizerMock_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 heimdall.Context
  • _a1 *subject.Subject

func (*AuthorizerMock_Expecter) ID

ID is a helper method to define mock.On call

func (*AuthorizerMock_Expecter) WithConfig

func (_e *AuthorizerMock_Expecter) WithConfig(config interface{}) *AuthorizerMock_WithConfig_Call

WithConfig is a helper method to define mock.On call

  • config map[string]interface{}

type AuthorizerMock_ID_Call

type AuthorizerMock_ID_Call struct {
	*mock.Call
}

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

func (*AuthorizerMock_ID_Call) Return

func (*AuthorizerMock_ID_Call) Run

func (_c *AuthorizerMock_ID_Call) Run(run func()) *AuthorizerMock_ID_Call

func (*AuthorizerMock_ID_Call) RunAndReturn

func (_c *AuthorizerMock_ID_Call) RunAndReturn(run func() string) *AuthorizerMock_ID_Call

type AuthorizerMock_WithConfig_Call

type AuthorizerMock_WithConfig_Call struct {
	*mock.Call
}

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

func (*AuthorizerMock_WithConfig_Call) Return

func (*AuthorizerMock_WithConfig_Call) Run

func (_c *AuthorizerMock_WithConfig_Call) Run(run func(config map[string]interface{})) *AuthorizerMock_WithConfig_Call

func (*AuthorizerMock_WithConfig_Call) RunAndReturn

func (_c *AuthorizerMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (authorizers.Authorizer, error)) *AuthorizerMock_WithConfig_Call

Jump to

Keyboard shortcuts

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