Documentation ¶
Overview ¶
Package runner provides tools for running Silk tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJSONBody ¶
ParseJSONBody parses a JSON body.
Types ¶
type Runner ¶
type Runner struct { // RoundTripper is the transport to use when making requests. // By default it is http.DefaultTransport. RoundTripper http.RoundTripper // ParseBody is the function to use to attempt to parse // response bodies to make data avaialble for assertions. ParseBody func(r io.Reader) (interface{}, error) // Log is the function to log to. Log func(string) // Verbose is the function that logs verbose debug information. Verbose func(...interface{}) // NewRequest makes a new http.Request. By default, uses http.NewRequest. NewRequest func(method, urlStr string, body io.Reader) (*http.Request, error) // contains filtered or unexported fields }
Runner runs parsed tests.
Click to show internal directories.
Click to hide internal directories.