2022-05-02 03:02:05 +00:00
|
|
|
// WARNING: this file is generated. DO NOT EDIT
|
|
|
|
|
|
|
|
package {{.TestPackageName}}
|
|
|
|
|
|
|
|
{{range .SortedFlagTypes}}
|
|
|
|
{{if .GenerateFlagInterface}}
|
|
|
|
func Test{{.TypeName}}_SatisfiesFlagInterface(t *testing.T) {
|
2022-05-02 03:36:59 +00:00
|
|
|
var f {{$.UrfaveCLITestNamespace}}Flag = &{{$.UrfaveCLITestNamespace}}{{.TypeName}}{}
|
|
|
|
|
|
|
|
_ = f.IsSet()
|
|
|
|
_ = f.Names()
|
2022-05-02 03:02:05 +00:00
|
|
|
}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .GenerateFmtStringerInterface}}
|
|
|
|
func Test{{.TypeName}}_SatisfiesFmtStringerInterface(t *testing.T) {
|
2022-05-02 03:36:59 +00:00
|
|
|
var f fmt.Stringer = &{{$.UrfaveCLITestNamespace}}{{.TypeName}}{}
|
|
|
|
|
|
|
|
_ = f.String()
|
2022-05-02 03:02:05 +00:00
|
|
|
}
|
|
|
|
{{end}}
|
2022-05-08 17:52:32 +00:00
|
|
|
|
|
|
|
{{if .GenerateRequiredFlagInterface}}
|
|
|
|
func Test{{.TypeName}}_SatisfiesRequiredFlagInterface(t *testing.T) {
|
|
|
|
var f {{$.UrfaveCLITestNamespace}}RequiredFlag = &{{$.UrfaveCLITestNamespace}}{{.TypeName}}{}
|
|
|
|
|
|
|
|
_ = f.IsRequired()
|
|
|
|
}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .GenerateVisibleFlagInterface}}
|
|
|
|
func Test{{.TypeName}}_SatisfiesVisibleFlagInterface(t *testing.T) {
|
|
|
|
var f {{$.UrfaveCLITestNamespace}}VisibleFlag = &{{$.UrfaveCLITestNamespace}}{{.TypeName}}{}
|
|
|
|
|
|
|
|
_ = f.IsVisible()
|
|
|
|
}
|
|
|
|
{{end}}
|
2022-05-02 03:02:05 +00:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
// vim{{/* 👻 */}}:ro
|
|
|
|
{{/*
|
|
|
|
vim:filetype=gotexttmpl
|
|
|
|
*/}}
|