Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExpectTab []*ExpectResponse
Functions ¶
func CheckExpect ¶
func CheckExpect() (success bool)
func InArrayInt ¶
func SetExpectResponse ¶
func SetExpectResponse(ee *ExpectResponse)
Types ¶
type ExpectMatchFunc ¶
type ExpectResponse ¶
type ExpectResponse struct {
UseURL string // http://www.2c-why.com/status for example
Method string // GET | POST
ExpectStatus []int // empty if status is not expected, [ 200, 201, ... 304 etc ]
ExpectREMatch string // Regular Expression to expect o n success
ExpectJSON bool // Response should be JSON data
ExpectAny bool // True if any non-error response is OK
ExpectMatch ExpectMatchFunc // A user supplied matching function
Timeout int // TODO xyzzy - timeout on response - if too slow to respond
ExitOnFail bool // IF set then failure to contct will result in exit.
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.