expect

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentSchema

func ContentSchema(schema *api.Schema, log contract.Logger) contract.Expectation

ContentSchema creates an expectation as for response's body structure which must comply to the provided JSON schema.

func ContentType

func ContentType(v string, log contract.Logger) contract.Expectation

ContentType creates an expectation as for response's content type.

func HeaderRequired

func HeaderRequired(n string, log contract.Logger) contract.Expectation

HeaderRequired creates an expectation as for response's header value.

func HeaderSchema

func HeaderSchema(n string, schema *api.Schema, log contract.Logger) contract.Expectation

HeaderSchema creates an expectation as for response's header contents which must comply to the provided JSON schema.

func JSONBody

func JSONBody(props contract.Set, graph gcontract.Graph, log contract.Logger) contract.Expectation

JSONBody creates an expectation as for response's body properties values.

func Status

func Status(status int, log contract.Logger) contract.Expectation

Status creates an expectation as for response's status code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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