Documentation
¶
Overview ¶
Package iffy helps you test http handlers.
We assume JSON for any marshaling/unmarshaling. If you use something else, that's fine, but the advanced features (responseObject + templating) will not work. For a real-life example, see https://github.com/alexisvisco/gadgeto/blob/master/tonic/tonic_test.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Call ¶
type Call struct { Name string Method string QueryStr string Body string // contains filtered or unexported fields }
func (*Call) ResponseObject ¶
type Checker ¶
func DumpResponse ¶
func ExpectJSONBranch ¶
func ExpectJSONFields ¶
func ExpectListLength ¶
func ExpectStatus ¶
func UnmarshalResponse ¶
func UnmarshalResponse(i interface{}) Checker
Click to show internal directories.
Click to hide internal directories.