noop

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package noop provides a no-op interpreter that can be handy for some tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interpreter

type Interpreter struct {
	// Silent, if false, will suppress warning log messages.
	Silent bool
}

Interpreter is an core.Interpreter which just returns the bindings without modification.

func NewInterpreter

func NewInterpreter() *Interpreter

func (*Interpreter) Compile

func (i *Interpreter) Compile(ctx context.Context, code interface{}) (interface{}, error)

func (*Interpreter) Exec

func (i *Interpreter) Exec(ctx context.Context, bs Bindings, props core.StepProps, code interface{}, compiled interface{}) (*core.Execution, error)

Exec returns the given bindings and emits no messages.

type Interpreters

type Interpreters struct {
	I *Interpreter
}

func NewInterpreters

func NewInterpreters() *Interpreters

func (*Interpreters) Find

func (i *Interpreters) Find(name string) core.Interpreter

Jump to

Keyboard shortcuts

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