Documentation ¶
Index ¶
- type HttpTester
- func (this *HttpTester) R_BODY(t *testing.T, method string, path string, code int) *httptest.ResponseRecorder
- func (this *HttpTester) T_(t *testing.T, method string, code int, path string, body interface{}) *httptest.ResponseRecorder
- func (this *HttpTester) T_DELETE(t *testing.T, code int, path string, body interface{}) *httptest.ResponseRecorder
- func (this *HttpTester) T_GET(t *testing.T, code int, path string, body interface{}) *httptest.ResponseRecorder
- func (this *HttpTester) T_POST(t *testing.T, code int, path string, body interface{}) *httptest.ResponseRecorder
- func (this *HttpTester) T_PUT(t *testing.T, code int, path string, body interface{}) *httptest.ResponseRecorder
- type RestTestClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpTester ¶
func (*HttpTester) R_BODY ¶
func (this *HttpTester) R_BODY( t *testing.T, method string, path string, code int, ) *httptest.ResponseRecorder
func (*HttpTester) T_ ¶
func (this *HttpTester) T_( t *testing.T, method string, code int, path string, body interface{}, ) *httptest.ResponseRecorder
test reguest
func (*HttpTester) T_DELETE ¶
func (this *HttpTester) T_DELETE(t *testing.T, code int, path string, body interface{}) *httptest.ResponseRecorder
func (*HttpTester) T_GET ¶
func (this *HttpTester) T_GET(t *testing.T, code int, path string, body interface{}) *httptest.ResponseRecorder
func (*HttpTester) T_POST ¶
func (this *HttpTester) T_POST(t *testing.T, code int, path string, body interface{}) *httptest.ResponseRecorder
func (*HttpTester) T_PUT ¶
func (this *HttpTester) T_PUT(t *testing.T, code int, path string, body interface{}) *httptest.ResponseRecorder
type RestTestClient ¶
type RestTestClient struct {
RestClient *rest_client.RestClient
}
func (*RestTestClient) T_ ¶
func (this *RestTestClient) T_( t *testing.T, method string, expectedCode int, controller stereotypes.ApiRestInteface, entityId string, body interface{}, )
Click to show internal directories.
Click to hide internal directories.