28 lines
599 B
Go Template
28 lines
599 B
Go Template
// WARNING: this file is generated. DO NOT EDIT
|
|
|
|
package {{.TestPackageName}}
|
|
|
|
{{range .SortedFlagTypes}}
|
|
{{if .GenerateFlagInterface}}
|
|
func Test{{.TypeName}}_SatisfiesFlagInterface(t *testing.T) {
|
|
var f {{$.UrfaveCLITestNamespace}}Flag = &{{$.UrfaveCLITestNamespace}}{{.TypeName}}{}
|
|
|
|
_ = f.IsSet()
|
|
_ = f.Names()
|
|
}
|
|
{{end}}
|
|
|
|
{{if .GenerateFmtStringerInterface}}
|
|
func Test{{.TypeName}}_SatisfiesFmtStringerInterface(t *testing.T) {
|
|
var f fmt.Stringer = &{{$.UrfaveCLITestNamespace}}{{.TypeName}}{}
|
|
|
|
_ = f.String()
|
|
}
|
|
{{end}}
|
|
{{end}}
|
|
|
|
// vim{{/* 👻 */}}:ro
|
|
{{/*
|
|
vim:filetype=gotexttmpl
|
|
*/}}
|