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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryMock

type FactoryMock struct {
	mock.Mock
}

FactoryMock is an autogenerated mock type for the Factory type

func NewFactoryMock

func NewFactoryMock(t mockConstructorTestingTNewFactoryMock) *FactoryMock

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

func (*FactoryMock) CreateAuthenticator

func (_m *FactoryMock) CreateAuthenticator(version string, id string, conf config.MechanismConfig) (authenticators.Authenticator, error)

CreateAuthenticator provides a mock function with given fields: version, id, conf

func (*FactoryMock) CreateAuthorizer

func (_m *FactoryMock) CreateAuthorizer(version string, id string, conf config.MechanismConfig) (authorizers.Authorizer, error)

CreateAuthorizer provides a mock function with given fields: version, id, conf

func (*FactoryMock) CreateContextualizer

func (_m *FactoryMock) CreateContextualizer(version string, id string, conf config.MechanismConfig) (contextualizers.Contextualizer, error)

CreateContextualizer provides a mock function with given fields: version, id, conf

func (*FactoryMock) CreateErrorHandler

func (_m *FactoryMock) CreateErrorHandler(version string, id string, conf config.MechanismConfig) (errorhandlers.ErrorHandler, error)

CreateErrorHandler provides a mock function with given fields: version, id, conf

func (*FactoryMock) CreateFinalizer

func (_m *FactoryMock) CreateFinalizer(version string, id string, conf config.MechanismConfig) (finalizers.Finalizer, error)

CreateFinalizer provides a mock function with given fields: version, id, conf

func (*FactoryMock) EXPECT

func (_m *FactoryMock) EXPECT() *FactoryMock_Expecter

type FactoryMock_CreateAuthenticator_Call

type FactoryMock_CreateAuthenticator_Call struct {
	*mock.Call
}

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

func (*FactoryMock_CreateAuthenticator_Call) Return

func (*FactoryMock_CreateAuthenticator_Call) Run

type FactoryMock_CreateAuthorizer_Call

type FactoryMock_CreateAuthorizer_Call struct {
	*mock.Call
}

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

func (*FactoryMock_CreateAuthorizer_Call) Return

func (*FactoryMock_CreateAuthorizer_Call) Run

func (*FactoryMock_CreateAuthorizer_Call) RunAndReturn

type FactoryMock_CreateContextualizer_Call

type FactoryMock_CreateContextualizer_Call struct {
	*mock.Call
}

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

func (*FactoryMock_CreateContextualizer_Call) Return

func (*FactoryMock_CreateContextualizer_Call) Run

type FactoryMock_CreateErrorHandler_Call

type FactoryMock_CreateErrorHandler_Call struct {
	*mock.Call
}

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

func (*FactoryMock_CreateErrorHandler_Call) Return

func (*FactoryMock_CreateErrorHandler_Call) Run

type FactoryMock_CreateFinalizer_Call

type FactoryMock_CreateFinalizer_Call struct {
	*mock.Call
}

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

func (*FactoryMock_CreateFinalizer_Call) Return

func (*FactoryMock_CreateFinalizer_Call) Run

func (*FactoryMock_CreateFinalizer_Call) RunAndReturn

type FactoryMock_Expecter

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

func (*FactoryMock_Expecter) CreateAuthenticator

func (_e *FactoryMock_Expecter) CreateAuthenticator(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateAuthenticator_Call

CreateAuthenticator is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

func (*FactoryMock_Expecter) CreateAuthorizer

func (_e *FactoryMock_Expecter) CreateAuthorizer(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateAuthorizer_Call

CreateAuthorizer is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

func (*FactoryMock_Expecter) CreateContextualizer

func (_e *FactoryMock_Expecter) CreateContextualizer(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateContextualizer_Call

CreateContextualizer is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

func (*FactoryMock_Expecter) CreateErrorHandler

func (_e *FactoryMock_Expecter) CreateErrorHandler(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateErrorHandler_Call

CreateErrorHandler is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

func (*FactoryMock_Expecter) CreateFinalizer

func (_e *FactoryMock_Expecter) CreateFinalizer(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateFinalizer_Call

CreateFinalizer is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

Jump to

Keyboard shortcuts

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