Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { Name string `json:"name" yaml:"name"` Path string `json:"path" yaml:"path"` Method string `json:"method" yaml:"method"` Body string `json:"body" yaml:"body"` Headers map[string]string `json:"headers" yaml:"headers"` Locals map[string]string `json:"locals" yaml:"locals"` Outputs map[string]string `json:"outputs" yaml:"outputs"` ExpectedHTTPCode int `json:"http_code_is" yaml:"http_code_is"` ExpectedResponseBody string `json:"response_body_contains" yaml:"response_body_contains"` }
Contract represents the data for a single test case: the definition of the HTTP call and the expected result
type Option ¶
type Option func(*Runner)
Option is a function which can change some properties of the Runner
func WithHTTPClient ¶
WithHTTPClient returns an Option which overrides the default http client
func WithVerboseModeOn ¶
WithVerboseModeOn returns an Option which sets the verbosity of the runner. Default is false.
Click to show internal directories.
Click to hide internal directories.