Versions in this module Expand all Collapse all v0 v0.12.0 Jul 3, 2022 Changes in this version + func ExpectListNonEmpty(r *http.Response, body string, respObject interface{}) error + type Call struct + Body string + Method string + Name string + QueryStr string + func (c *Call) Checkers(ch ...Checker) *Call + func (c *Call) Headers(h Headers) *Call + func (c *Call) Host(h string) *Call + func (c *Call) ResponseObject(respObject interface{}) *Call + type Checker func(r *http.Response, body string, respObject interface{}) error + func DumpResponse(t *testing.T) Checker + func ExpectJSONBranch(nodes ...string) Checker + func ExpectJSONFields(fields ...string) Checker + func ExpectListLength(length int) Checker + func ExpectStatus(st int) Checker + func UnmarshalResponse(i interface{}) Checker + type Headers map[string]string + type Tester struct + Calls []*Call + Fatal bool + func NewTester(t *testing.T, r http.Handler, calls ...*Call) *Tester + func (it *Tester) Run() + func (t *Tester) AddCall(name, method, querystr, body string) *Call + func (t *Tester) Reset() + type Values map[string]interface + func (v Values) Apply(templateStr string) ([]byte, error)