Documentation
¶
Index ¶
Constants ¶
View Source
const RouterFuncName = "RouterFunc"
RouterFuncName is function name to be replaced
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
Yaml string
Template string
TemplateDir string
OutputDir string
RouterFuncs []*RouterFunc
TestFuncs TestFuncs
TestFuncsPerAPIVersion map[string]TestFuncs
Program *loader.Program
}
Generator is the type for code generator
type RouterFunc ¶ added in v0.2.0
RouterFunc describe a function which should be called from test to get http.Handler
type Subtests ¶
type Subtests []Subtest
Subtests is a group of Subtest
func (Subtests) IsSubtests ¶
IsSubtests returns true when t is Subtests
type Test ¶
type Test struct {
APIVersions []string
Path string
Method string
Req Req
Res Res
Vars map[string]interface{}
}
Test represents a test in a test function
Click to show internal directories.
Click to hide internal directories.