Versions in this module Expand all Collapse all v1 v1.0.1 Feb 19, 2020 v1.0.0 Jan 31, 2020 Changes in this version + func DB(t *testing.T) *dbcontext.DB + func Endpoint(t *testing.T, router *routing.Router, tc APITestCase) + func MockRouter(logger log.Logger) *routing.Router + func MockRoutingContext(req *http.Request) (*routing.Context, *httptest.ResponseRecorder) + func ResetTables(t *testing.T, db *dbcontext.DB, tables ...string) + type APITestCase struct + Body string + Header http.Header + Method string + Name string + URL string + WantResponse string + WantStatus int