Documentation ¶
Index ¶
- Variables
- func DefaultChecker(value string) func(t *testing.T, r *httptest.ResponseRecorder, buf *bytes.Buffer)
- func Hit(t *testing.T, configs []*Config, middelwares ...MiddlewareTest)
- func HitBy(custom func(e *echo.Echo) echo.Context, t *testing.T, configs []*Config, ...)
- type Config
- type HandlerTest
- type MiddlewareTest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Eq = assert.Equal NotEq = assert.NotEqual True = assert.True False = assert.False NotNil = assert.NotNil Empty = assert.Empty NotEmpty = assert.NotEmpty Len = assert.Len Contains = assert.Contains NotContains = assert.NotContains Subset = assert.Subset NotSubset = assert.NotSubset )
Functions ¶
func DefaultChecker ¶
Types ¶
type Config ¶
type Config struct {
Method, Path string
Handler HandlerTest
ReqRewrite []func(*http.Request)
Checker func(*testing.T, *httptest.ResponseRecorder, *bytes.Buffer)
Middlewares []MiddlewareTest
}
type HandlerTest ¶
type HandlerTest func(*bytes.Buffer) echo.HandlerFunc
type MiddlewareTest ¶
type MiddlewareTest func(*bytes.Buffer) echo.MiddlewareFuncd
Click to show internal directories.
Click to hide internal directories.