Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PerformRequest ¶
func PerformRequest(r http.Handler, method, path string, header http.Header, body ...io.Reader) *httptest.ResponseRecorder
PerformRequest router test
func PerformRequestJSON ¶
func PerformRequestJSON(r http.Handler, method, path string, data interface{}, header ...http.Header) *httptest.ResponseRecorder
PerformRequestJSON 使用 interface{} 作为json参数,在函数内部去json Marshal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.