mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator struct {
	mock.Mock
}

Evaluator is a mock implementation of evaluation.Evaluator for testing purposes.

func (*Evaluator) AddDataToContext

func (m *Evaluator) AddDataToContext(
	ctx context.Context,
	d ...map[string]any,
) (context.Context, error)

AddDataToContext is a mock implementation of the AddDataToContext method.

func (*Evaluator) Eval

Eval is a mock implementation of the Eval method.

func (*Evaluator) Load

func (m *Evaluator) Load(newVersion script.ExecutableUnit) error

Load is a mock implementation of the Load method.

func (*Evaluator) Reload

func (m *Evaluator) Reload(path string) error

Reload is a mock implementation of the Reload method.

type EvaluatorResponse

type EvaluatorResponse struct {
	mock.Mock
}

EvaluatorResponse is a mock implementation of the cpu.EvaluatorResponse interface.

func (*EvaluatorResponse) GetExecTime

func (m *EvaluatorResponse) GetExecTime() string

GetExecTime returns a mockable execution time.

func (*EvaluatorResponse) GetScriptExeID

func (m *EvaluatorResponse) GetScriptExeID() string

GetScriptExeID returns a mockable script version.

func (*EvaluatorResponse) Inspect

func (m *EvaluatorResponse) Inspect() string

Inspect returns a mockable string.

func (*EvaluatorResponse) Interface

func (m *EvaluatorResponse) Interface() any

Interface returns a mockable value of "any" type, and must be type asserted to the correct type.

func (*EvaluatorResponse) Type

func (m *EvaluatorResponse) Type() data.Types

Type returns a mockable Type.

Jump to

Keyboard shortcuts

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