Documentation ¶
Overview ¶
Package mock contains mock implementations of the query package interfaces for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct { CompileFn func(ctx context.Context) (*flux.Spec, error) Type flux.CompilerType }
func (Compiler) CompilerType ¶
func (c Compiler) CompilerType() flux.CompilerType
type Executor ¶
type Executor struct {
ExecuteFn func(ctx context.Context, p *plan.PlanSpec, a *memory.Allocator) (map[string]flux.Result, error)
}
Executor is a mock implementation of an execute.Executor.
func NewExecutor ¶
func NewExecutor() *Executor
NewExecutor returns a mock Executor where its methods will return zero values.
Click to show internal directories.
Click to hide internal directories.