assertable

package
v0.0.0-...-afd21db Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assertable

type Assertable struct {
	*referrable.Referrable
	Variables map[string]string
}

Assertable is something assertable

func NewAssertable

func NewAssertable(resp *response.Response) *Assertable

NewAssertable creates an assertable object

func (*Assertable) Assert

func (a *Assertable) Assert(ex []Row) error

Assert to assert with expectations

type Matcher

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

Matcher is matcher

func NewMatcher

func NewMatcher(k, v string, vars map[string]string) *Matcher

NewMatcher creates a new matcher

func (*Matcher) Match

func (m *Matcher) Match(a *Assertable) (bool, error)

Match to match value

func (*Matcher) String

func (m *Matcher) String() string

type Row

type Row struct {
	Field       string
	Expectation string
}

Row is assertion entry

Jump to

Keyboard shortcuts

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