Documentation ¶
Index ¶
- func Run(t *testing.T, testingSuite TestingSuite)
- type ControllerSuite
- func (suite *ControllerSuite) DELETE(path, body string) *httptest.ResponseRecorder
- func (suite *ControllerSuite) GET(path, body string) *httptest.ResponseRecorder
- func (suite *ControllerSuite) MockRequest(method, path, body string) *httptest.ResponseRecorder
- func (suite *ControllerSuite) PATCH(path, body string) *httptest.ResponseRecorder
- func (suite *ControllerSuite) POST(path, body string) *httptest.ResponseRecorder
- func (suite *ControllerSuite) PUT(path, body string) *httptest.ResponseRecorder
- type Suite
- type TestingSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ControllerSuite ¶
ControllerSuite mock controller requests
func (*ControllerSuite) DELETE ¶
func (suite *ControllerSuite) DELETE(path, body string) *httptest.ResponseRecorder
DELETE on Server
func (*ControllerSuite) GET ¶
func (suite *ControllerSuite) GET(path, body string) *httptest.ResponseRecorder
GET on Server
func (*ControllerSuite) MockRequest ¶
func (suite *ControllerSuite) MockRequest(method, path, body string) *httptest.ResponseRecorder
MockRequest on Server
func (*ControllerSuite) PATCH ¶
func (suite *ControllerSuite) PATCH(path, body string) *httptest.ResponseRecorder
PATCH on Server
func (*ControllerSuite) POST ¶
func (suite *ControllerSuite) POST(path, body string) *httptest.ResponseRecorder
POST on Server
func (*ControllerSuite) PUT ¶
func (suite *ControllerSuite) PUT(path, body string) *httptest.ResponseRecorder
PUT on Server
Click to show internal directories.
Click to hide internal directories.