Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoFuzzTestController ¶
func AutoFuzzTestController(t TestRunner, controller interface{})
Types ¶
type ControllerRequest ¶
type ControllerRoutingHandler ¶
type ControllerRoutingHandler struct {
Controllers map[string]interface{}
// contains filtered or unexported fields
}
func NewControllerRoutingHandler ¶
func NewControllerRoutingHandler() *ControllerRoutingHandler
func (*ControllerRoutingHandler) Handler ¶
func (c *ControllerRoutingHandler) Handler() http.Handler
func (*ControllerRoutingHandler) RegisterController ¶
func (c *ControllerRoutingHandler) RegisterController(name string, controller interface{}) error
type MethodTestResult ¶
type MethodTestResult struct {
MethodName string
ValidationError error
HasInvalidSQLQueryParams bool
ReturnData []interface{}
}
func FuzzTestController ¶
func FuzzTestController(controller interface{}) []MethodTestResult
type TestRunner ¶
type TestRunner interface {
Error(args ...interface{})
Logf(format string, args ...interface{})
}
Click to show internal directories.
Click to hide internal directories.