test

package
v1.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpTester

type HttpTester struct {
	Router *gin.Engine
}

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{},
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL