Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.17.28 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 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 ErrorHandlerMock

type ErrorHandlerMock struct {
	mock.Mock
}

ErrorHandlerMock is an autogenerated mock type for the errorHandler type

func NewErrorHandlerMock

func NewErrorHandlerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ErrorHandlerMock

NewErrorHandlerMock creates a new instance of ErrorHandlerMock. 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 (*ErrorHandlerMock) EXPECT

func (*ErrorHandlerMock) Execute

func (_m *ErrorHandlerMock) Execute(ctx heimdall.RequestContext, causeErr error) error

Execute provides a mock function with given fields: ctx, causeErr

func (*ErrorHandlerMock) ID

func (_m *ErrorHandlerMock) ID() string

ID provides a mock function with given fields:

type ErrorHandlerMock_Execute_Call

type ErrorHandlerMock_Execute_Call struct {
	*mock.Call
}

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

func (*ErrorHandlerMock_Execute_Call) Return

func (*ErrorHandlerMock_Execute_Call) Run

func (*ErrorHandlerMock_Execute_Call) RunAndReturn

type ErrorHandlerMock_Expecter

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

func (*ErrorHandlerMock_Expecter) Execute

func (_e *ErrorHandlerMock_Expecter) Execute(ctx interface{}, causeErr interface{}) *ErrorHandlerMock_Execute_Call

Execute is a helper method to define mock.On call

  • ctx heimdall.RequestContext
  • causeErr error

func (*ErrorHandlerMock_Expecter) ID

ID is a helper method to define mock.On call

type ErrorHandlerMock_ID_Call

type ErrorHandlerMock_ID_Call struct {
	*mock.Call
}

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

func (*ErrorHandlerMock_ID_Call) Return

func (*ErrorHandlerMock_ID_Call) Run

func (*ErrorHandlerMock_ID_Call) RunAndReturn

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

type ExecutionConditionMock

type ExecutionConditionMock struct {
	mock.Mock
}

ExecutionConditionMock is an autogenerated mock type for the executionCondition type

func NewExecutionConditionMock

func NewExecutionConditionMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionConditionMock

NewExecutionConditionMock creates a new instance of ExecutionConditionMock. 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 (*ExecutionConditionMock) CanExecuteOnError

func (_m *ExecutionConditionMock) CanExecuteOnError(ctx heimdall.RequestContext, err error) (bool, error)

CanExecuteOnError provides a mock function with given fields: ctx, err

func (*ExecutionConditionMock) CanExecuteOnSubject

func (_m *ExecutionConditionMock) CanExecuteOnSubject(ctx heimdall.RequestContext, sub *subject.Subject) (bool, error)

CanExecuteOnSubject provides a mock function with given fields: ctx, sub

func (*ExecutionConditionMock) EXPECT

type ExecutionConditionMock_CanExecuteOnError_Call

type ExecutionConditionMock_CanExecuteOnError_Call struct {
	*mock.Call
}

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

func (*ExecutionConditionMock_CanExecuteOnError_Call) Return

func (*ExecutionConditionMock_CanExecuteOnError_Call) Run

func (*ExecutionConditionMock_CanExecuteOnError_Call) RunAndReturn

type ExecutionConditionMock_CanExecuteOnSubject_Call

type ExecutionConditionMock_CanExecuteOnSubject_Call struct {
	*mock.Call
}

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

func (*ExecutionConditionMock_CanExecuteOnSubject_Call) Return

func (*ExecutionConditionMock_CanExecuteOnSubject_Call) Run

func (*ExecutionConditionMock_CanExecuteOnSubject_Call) RunAndReturn

type ExecutionConditionMock_Expecter

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

func (*ExecutionConditionMock_Expecter) CanExecuteOnError

func (_e *ExecutionConditionMock_Expecter) CanExecuteOnError(ctx interface{}, err interface{}) *ExecutionConditionMock_CanExecuteOnError_Call

CanExecuteOnError is a helper method to define mock.On call

  • ctx heimdall.RequestContext
  • err error

func (*ExecutionConditionMock_Expecter) CanExecuteOnSubject

func (_e *ExecutionConditionMock_Expecter) CanExecuteOnSubject(ctx interface{}, sub interface{}) *ExecutionConditionMock_CanExecuteOnSubject_Call

CanExecuteOnSubject is a helper method to define mock.On call

  • ctx heimdall.RequestContext
  • sub *subject.Subject

type PatternMatcherMock

type PatternMatcherMock struct {
	mock.Mock
}

PatternMatcherMock is an autogenerated mock type for the patternMatcher type

func NewPatternMatcherMock

func NewPatternMatcherMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *PatternMatcherMock

NewPatternMatcherMock creates a new instance of PatternMatcherMock. 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 (*PatternMatcherMock) EXPECT

func (*PatternMatcherMock) Match

func (_m *PatternMatcherMock) Match(pattern string) bool

Match provides a mock function with given fields: pattern

type PatternMatcherMock_Expecter

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

func (*PatternMatcherMock_Expecter) Match

func (_e *PatternMatcherMock_Expecter) Match(pattern interface{}) *PatternMatcherMock_Match_Call

Match is a helper method to define mock.On call

  • pattern string

type PatternMatcherMock_Match_Call

type PatternMatcherMock_Match_Call struct {
	*mock.Call
}

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

func (*PatternMatcherMock_Match_Call) Return

func (*PatternMatcherMock_Match_Call) Run

func (*PatternMatcherMock_Match_Call) RunAndReturn

type SubjectCreatorMock

type SubjectCreatorMock struct {
	mock.Mock
}

SubjectCreatorMock is an autogenerated mock type for the subjectCreator type

func NewSubjectCreatorMock

func NewSubjectCreatorMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubjectCreatorMock

NewSubjectCreatorMock creates a new instance of SubjectCreatorMock. 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 (*SubjectCreatorMock) EXPECT

func (*SubjectCreatorMock) Execute

Execute provides a mock function with given fields: ctx

func (*SubjectCreatorMock) IsInsecure added in v0.16.0

func (_m *SubjectCreatorMock) IsInsecure() bool

IsInsecure provides a mock function with no fields

type SubjectCreatorMock_Execute_Call

type SubjectCreatorMock_Execute_Call struct {
	*mock.Call
}

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

func (*SubjectCreatorMock_Execute_Call) Return

func (*SubjectCreatorMock_Execute_Call) Run

func (*SubjectCreatorMock_Execute_Call) RunAndReturn

type SubjectCreatorMock_Expecter

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

func (*SubjectCreatorMock_Expecter) Execute

func (_e *SubjectCreatorMock_Expecter) Execute(ctx interface{}) *SubjectCreatorMock_Execute_Call

Execute is a helper method to define mock.On call

  • ctx heimdall.RequestContext

func (*SubjectCreatorMock_Expecter) IsInsecure added in v0.16.0

IsInsecure is a helper method to define mock.On call

type SubjectCreatorMock_IsInsecure_Call added in v0.16.0

type SubjectCreatorMock_IsInsecure_Call struct {
	*mock.Call
}

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

func (*SubjectCreatorMock_IsInsecure_Call) Return added in v0.16.0

func (*SubjectCreatorMock_IsInsecure_Call) Run added in v0.16.0

func (*SubjectCreatorMock_IsInsecure_Call) RunAndReturn added in v0.16.0

type SubjectHandlerMock

type SubjectHandlerMock struct {
	mock.Mock
}

SubjectHandlerMock is an autogenerated mock type for the subjectHandler type

func NewSubjectHandlerMock

func NewSubjectHandlerMock(t mockConstructorTestingTNewSubjectHandlerMock) *SubjectHandlerMock

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

func (*SubjectHandlerMock) ContinueOnError

func (_m *SubjectHandlerMock) ContinueOnError() bool

ContinueOnError provides a mock function with given fields:

func (*SubjectHandlerMock) EXPECT

func (*SubjectHandlerMock) Execute

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

func (*SubjectHandlerMock) ID

func (_m *SubjectHandlerMock) ID() string

ID provides a mock function with given fields:

type SubjectHandlerMock_ContinueOnError_Call

type SubjectHandlerMock_ContinueOnError_Call struct {
	*mock.Call
}

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

func (*SubjectHandlerMock_ContinueOnError_Call) Return

func (*SubjectHandlerMock_ContinueOnError_Call) Run

func (*SubjectHandlerMock_ContinueOnError_Call) RunAndReturn

type SubjectHandlerMock_Execute_Call

type SubjectHandlerMock_Execute_Call struct {
	*mock.Call
}

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

func (*SubjectHandlerMock_Execute_Call) Return

func (*SubjectHandlerMock_Execute_Call) Run

func (*SubjectHandlerMock_Execute_Call) RunAndReturn

type SubjectHandlerMock_Expecter

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

func (*SubjectHandlerMock_Expecter) ContinueOnError

ContinueOnError is a helper method to define mock.On call

func (*SubjectHandlerMock_Expecter) Execute

func (_e *SubjectHandlerMock_Expecter) Execute(_a0 interface{}, _a1 interface{}) *SubjectHandlerMock_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 heimdall.RequestContext
  • _a1 *subject.Subject

func (*SubjectHandlerMock_Expecter) ID

ID is a helper method to define mock.On call

type SubjectHandlerMock_ID_Call

type SubjectHandlerMock_ID_Call struct {
	*mock.Call
}

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

func (*SubjectHandlerMock_ID_Call) Return

func (*SubjectHandlerMock_ID_Call) Run

func (*SubjectHandlerMock_ID_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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