Versions in this module Expand all Collapse all v1 v1.0.0 Aug 28, 2023 Changes in this version + var ErrMIMENotSupported = fmt.Errorf("mime is not supported") + var ErrMethodNotSupported = fmt.Errorf("method is not supported") + var ErrNotSetTesting = fmt.Errorf("please set testing.T") + func MockEngine(init func(engine *gin.Engine) error) *gin.Engine + type GinMock interface + Body func(body io.Reader) GinMock + BodyFileSingleForm func(fileName string, fieldName string, param interface{}) GinMock + BodyForm func(param interface{}) GinMock + BodyJson func(body interface{}) GinMock + FullUrl func() string + Header func(header map[string]string) GinMock + Method func(method string) GinMock + NewRecorder func() *httptest.ResponseRecorder + Query func(query interface{}) GinMock + Request func() *http.Request + func NewGinMock(t *testing.T, router *gin.Engine, baseUrl string, url string) GinMock