step

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInterpolationError = errors.New("interpolation_error")
)

Functions

This section is empty.

Types

type Exporter

type Exporter struct{}

func NewExporter

func NewExporter() Exporter

type HttpClient

type HttpClient struct {
	// contains filtered or unexported fields
}

func NewHTTPClient

func NewHTTPClient(client http.Client) HttpClient

NewHTTPClient instantiates a new http executor

func (*HttpClient) Do

func (c *HttpClient) Do(request spec.Request) (*http.Response, error)

type Interpolator

type Interpolator struct{}

func NewInterpolator

func NewInterpolator() *Interpolator

NewInterpolator instantiates a new template interpolator

type Matcher

type Matcher struct{}

func NewMatcher

func NewMatcher() Matcher

NewMatcher instantiates a new Matcher

type Result

type Result struct {
	Name         string
	Pass         bool
	PassedChecks []string
	FailedChecks []string
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(client HttpClient, interpolator Interpolator, matcher Matcher, exporter Exporter) Runner

NewRunner instantiates a new HTTPRunner

func (*Runner) Run

Run interpolates, executes and validates an HTTP step

Jump to

Keyboard shortcuts

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