Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TestTmpl = template.Must(template.New("gen_test.go").Funcs(template.FuncMap{ "createCS": func(ss []string) string { var res = make([]byte, 0, 100) for _, s := range ss { res = append(res, s...) res = append(res, ',') } return string(res) }}).Parse(` // Code generated by ccffer; DO NOT EDIT. {{$pkg := .PkgName}} package {{$pkg}}_test import ( "testing" "{{.PkgPath}}" ) {{range $gf := .GenFuncs}}func Test{{$gf.FName}}(t *testing.T) { {{range $app := $gf.Apps}}{{$pkg}}.{{$gf.FName}} {{if lt 0 (len $app.TypeInstances)}} [ {{ createCS $app.TypeInstances}}] {{end}} ({{createCS $app.Args}}) {{end}} } {{end}}`))
Functions ¶
func FormatAndImport ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.