eval_mocks

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEvaluatorFactory

func NewEvaluatorFactory(evaluator eval.ConditionEvaluator) eval.EvaluatorFactory

func NewFailingEvaluatorFactory

func NewFailingEvaluatorFactory(err error) eval.EvaluatorFactory

Types

type ConditionEvaluatorMock

type ConditionEvaluatorMock struct {
	mock.Mock
}

ConditionEvaluatorMock is an autogenerated mock type for the ConditionEvaluator type

func NewConditionEvaluatorMock

func NewConditionEvaluatorMock(t mockConstructorTestingTNewConditionEvaluatorMock) *ConditionEvaluatorMock

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

func (*ConditionEvaluatorMock) EXPECT

func (*ConditionEvaluatorMock) Evaluate

func (_m *ConditionEvaluatorMock) Evaluate(ctx context.Context, now time.Time) (eval.Results, error)

Evaluate provides a mock function with given fields: ctx, now

func (*ConditionEvaluatorMock) EvaluateRaw

EvaluateRaw provides a mock function with given fields: ctx, now

type ConditionEvaluatorMock_EvaluateRaw_Call

type ConditionEvaluatorMock_EvaluateRaw_Call struct {
	*mock.Call
}

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

func (*ConditionEvaluatorMock_EvaluateRaw_Call) Return

func (*ConditionEvaluatorMock_EvaluateRaw_Call) Run

type ConditionEvaluatorMock_Evaluate_Call

type ConditionEvaluatorMock_Evaluate_Call struct {
	*mock.Call
}

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

func (*ConditionEvaluatorMock_Evaluate_Call) Return

func (*ConditionEvaluatorMock_Evaluate_Call) Run

type ConditionEvaluatorMock_Expecter

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

func (*ConditionEvaluatorMock_Expecter) Evaluate

Evaluate is a helper method to define mock.On call

  • ctx context.Context
  • now time.Time

func (*ConditionEvaluatorMock_Expecter) EvaluateRaw

EvaluateRaw is a helper method to define mock.On call

  • ctx context.Context
  • now time.Time

Jump to

Keyboard shortcuts

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