Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCase ¶
type TestCase struct {
Name string
DisableDebug bool
ReqTemplate interface{}
FormReqParser bool
RespTemplate interface{}
Request interface{}
Handler mbd.Handler
Providers []mbd.Provider
Checkers []mbd.Checker
Assertion func(require.TestingT, int, map[string][]string, interface{})
}
TestCase describes a test case.
func GetTestCase ¶
GetTestCase returns the TestCase with the given name, panics if not found.
func GetTestCases ¶
func GetTestCases() []*TestCase
GetTestCases returns a list of test cases, which can be run locally in-memory, or against a test remote Lambda deployment.
type TestRequest ¶
type TestRequest struct {
Value string `json:"value" schema:"value"`
}
TestRequest is a request for test functions.
type TestResponse ¶
type TestResponse struct {
Value string `json:"value"`
}
TestResponse is a response for test functions.
Click to show internal directories.
Click to hide internal directories.