Documentation ¶
Index ¶
- func ActualResponse(t *testing.T, router *gin.Engine, method, url string, body io.Reader) *http.Response
- func JSONStringFromInterface(t *testing.T, res interface{}) string
- func JSONStringFromResBody(t *testing.T, body io.Reader) string
- func ReqBodyFromInterface(t *testing.T, body interface{}) *bytes.Buffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActualResponse ¶
func ActualResponse(t *testing.T, router *gin.Engine, method, url string, body io.Reader) *http.Response
ActualResponse return recorded response
func JSONStringFromInterface ¶
JSONStringFromInterface return json string by interface.
func JSONStringFromResBody ¶
JSONStringFromResBody return json string by http response body
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.