Documentation ¶
Index ¶
- type HTTPTester
- type Response
- func (r *Response) Expect(cond bool, errStr string, v ...interface{}) *Response
- func (r *Response) ExpectOutput(output, errStr string, v ...interface{}) *Response
- func (r *Response) ExpectOutputContains(output, errStr string, v ...interface{}) *Response
- func (r *Response) ExpectRedirect(urlStr, errStr string, v ...interface{}) *Response
- func (r *Response) ExpectStatus(status int, errStr string, v ...interface{}) *Response
- func (result *Response) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPTester ¶
func NewHTTPTester ¶
func NewHTTPTester(t testing.TB, a http.Handler) HTTPTester
func (HTTPTester) GetRequest ¶
func (appt HTTPTester) GetRequest(urlStr string) *Response
type Response ¶
type Response struct { T testing.TB httptest.ResponseRecorder }
func (*Response) ExpectOutput ¶
func (*Response) ExpectOutputContains ¶
func (*Response) ExpectRedirect ¶
func (*Response) ExpectStatus ¶
Click to show internal directories.
Click to hide internal directories.