mocks

package
v0.10.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 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 AuthenticatorMock

type AuthenticatorMock struct {
	mock.Mock
}

AuthenticatorMock is an autogenerated mock type for the Authenticator type

func NewAuthenticatorMock

func NewAuthenticatorMock(t mockConstructorTestingTNewAuthenticatorMock) *AuthenticatorMock

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

func (*AuthenticatorMock) EXPECT

func (*AuthenticatorMock) Execute

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

Execute provides a mock function with given fields: _a0

func (*AuthenticatorMock) IsFallbackOnErrorAllowed

func (_m *AuthenticatorMock) IsFallbackOnErrorAllowed() bool

IsFallbackOnErrorAllowed provides a mock function with given fields:

func (*AuthenticatorMock) WithConfig

func (_m *AuthenticatorMock) WithConfig(config map[string]interface{}) (authenticators.Authenticator, error)

WithConfig provides a mock function with given fields: config

type AuthenticatorMock_Execute_Call

type AuthenticatorMock_Execute_Call struct {
	*mock.Call
}

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

func (*AuthenticatorMock_Execute_Call) Return

func (*AuthenticatorMock_Execute_Call) Run

func (*AuthenticatorMock_Execute_Call) RunAndReturn

type AuthenticatorMock_Expecter

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

func (*AuthenticatorMock_Expecter) Execute

func (_e *AuthenticatorMock_Expecter) Execute(_a0 interface{}) *AuthenticatorMock_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 heimdall.Context

func (*AuthenticatorMock_Expecter) IsFallbackOnErrorAllowed

IsFallbackOnErrorAllowed is a helper method to define mock.On call

func (*AuthenticatorMock_Expecter) WithConfig

func (_e *AuthenticatorMock_Expecter) WithConfig(config interface{}) *AuthenticatorMock_WithConfig_Call

WithConfig is a helper method to define mock.On call

  • config map[string]interface{}

type AuthenticatorMock_IsFallbackOnErrorAllowed_Call

type AuthenticatorMock_IsFallbackOnErrorAllowed_Call struct {
	*mock.Call
}

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

func (*AuthenticatorMock_IsFallbackOnErrorAllowed_Call) Return

func (*AuthenticatorMock_IsFallbackOnErrorAllowed_Call) Run

func (*AuthenticatorMock_IsFallbackOnErrorAllowed_Call) RunAndReturn

type AuthenticatorMock_WithConfig_Call

type AuthenticatorMock_WithConfig_Call struct {
	*mock.Call
}

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

func (*AuthenticatorMock_WithConfig_Call) Return

func (*AuthenticatorMock_WithConfig_Call) Run

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

func (*AuthenticatorMock_WithConfig_Call) RunAndReturn

Jump to

Keyboard shortcuts

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