Versions in this module Expand all Collapse all v0 v0.0.1 Feb 8, 2020 Changes in this version + func CompareRequests(t *testing.T, expected *TestRequest, actual *http.Request) + func WriteResponse(t *testing.T, resp *TestResponse, w http.ResponseWriter) + type TestCategory struct + Scenarios map[string]TestScenario + type TestRequest struct + Body io.ReadSeeker + Headers map[string]string + Method string + Path string + type TestResponse struct + Body io.ReadSeeker + Code int + Headers map[string]string + Status string + type TestScenario struct + Request TestRequest + Response TestResponse + type Tester struct + Categories map[string]TestCategory + URL string + func NewTester(categories map[string]TestCategory) *Tester + func (tester *Tester) Close() + func (tester *Tester) Do(pattern string, handler func(http.ResponseWriter, *http.Request)) + func (tester *Tester) Scenario(category string, scenario string) (*TestScenario, error) + func (tester *Tester) Setup(t *testing.T, category string, scenario string)