slowecho

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Clock clock.Clock
View Source
var Events = []event.Name{}

Events defines the events that a TestStep is allow to emit

View Source
var Name = "SlowEcho"

Name is the name used to look this plugin up.

Functions

func Load

func Load() (string, test.TestStepFactory, []event.Name)

Load returns the name, factory and events which are needed to register the step.

func New

func New() test.TestStep

New initializes and returns a new EchoStep. It implements the TestStepFactory interface.

Types

type Step

type Step struct {
}

Step implements an echo-style printing plugin.

func (*Step) Name

func (e *Step) Name() string

Name returns the name of the Step

func (*Step) Run

Run executes the step

func (*Step) ValidateParameters

func (e *Step) ValidateParameters(_ xcontext.Context, params test.TestStepParameters) error

ValidateParameters validates the parameters that will be passed to the Run and Resume methods of the test step.

Jump to

Keyboard shortcuts

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