Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRequest ¶
BuildRequest used to build a new http request
Types ¶
type APITest ¶
type APITest struct { Requests []APITestRequest Responses []APITestResponse AssertionFn func(*suite.Suite, APITest) }
APITest used to
func NewAPITest ¶
func NewAPITest(reqs []APITestRequest, assertFn func(*suite.Suite, APITest)) *APITest
NewAPITest used to
type APITestRequest ¶
APITestRequest used to
type APITestResponse ¶
APITestResponse used to
func RunRequest ¶
func RunRequest(s *suite.Suite, server HTTPServer, req *http.Request) APITestResponse
RunRequest used to test
type HTTPServer ¶
type HTTPServer interface {
ServeHTTP(httpwriter http.ResponseWriter, httpRequest *http.Request)
}
HTTPServer used to represent http server
Click to show internal directories.
Click to hide internal directories.