Versions in this module Expand all Collapse all v0 v0.1.3 Feb 24, 2021 v0.1.2 Feb 15, 2021 v0.1.1 Dec 27, 2020 Changes in this version + func BuildRequest(s *suite.Suite, method, path string, bodyJSONObj interface{}) *http.Request + func ReplaceRequestBody(req *http.Request, oldStr, newStr string) *http.Request + type APITest struct + AssertionFn func(*suite.Suite, APITest) + Requests []APITestRequest + Responses []APITestResponse + func NewAPITest(reqs []APITestRequest, assertFn func(*suite.Suite, APITest)) *APITest + func (ref *APITest) Run(s *suite.Suite, server HTTPServer) + type APITestRequest struct + PreReqFn func(APITest, *http.Request) + Request *http.Request + type APITestResponse struct + BodyJSON interface{} + BodyText string + Code int + HeaderMap http.Header + func RunRequest(s *suite.Suite, server HTTPServer, req *http.Request) APITestResponse + type HTTPServer interface + ServeHTTP func(httpwriter http.ResponseWriter, httpRequest *http.Request)