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 ¶
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 (_m *ConditionEvaluatorMock) EXPECT() *ConditionEvaluatorMock_Expecter
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 ¶
func (_m *ConditionEvaluatorMock) EvaluateRaw(ctx context.Context, now time.Time) (*backend.QueryDataResponse, error)
EvaluateRaw provides a mock function with given fields: ctx, now
type ConditionEvaluatorMock_EvaluateRaw_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 (_c *ConditionEvaluatorMock_EvaluateRaw_Call) Return(resp *backend.QueryDataResponse, err error) *ConditionEvaluatorMock_EvaluateRaw_Call
func (*ConditionEvaluatorMock_EvaluateRaw_Call) Run ¶
func (_c *ConditionEvaluatorMock_EvaluateRaw_Call) Run(run func(ctx context.Context, now time.Time)) *ConditionEvaluatorMock_EvaluateRaw_Call
type ConditionEvaluatorMock_Evaluate_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 (_c *ConditionEvaluatorMock_Evaluate_Call) Return(_a0 eval.Results, _a1 error) *ConditionEvaluatorMock_Evaluate_Call
func (*ConditionEvaluatorMock_Evaluate_Call) Run ¶
func (_c *ConditionEvaluatorMock_Evaluate_Call) Run(run func(ctx context.Context, now time.Time)) *ConditionEvaluatorMock_Evaluate_Call
type ConditionEvaluatorMock_Expecter ¶
type ConditionEvaluatorMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ConditionEvaluatorMock_Expecter) Evaluate ¶
func (_e *ConditionEvaluatorMock_Expecter) Evaluate(ctx any, now any) *ConditionEvaluatorMock_Evaluate_Call
Evaluate is a helper method to define mock.On call
- ctx context.Context
- now time.Time
func (*ConditionEvaluatorMock_Expecter) EvaluateRaw ¶
func (_e *ConditionEvaluatorMock_Expecter) EvaluateRaw(ctx any, now any) *ConditionEvaluatorMock_EvaluateRaw_Call
EvaluateRaw is a helper method to define mock.On call
- ctx context.Context
- now time.Time