MCPcopy
hub / github.com/spf13/pflag / FuncFlagSet

Interface FuncFlagSet

func_go1.21_test.go:16–19  ·  func_go1.21_test.go::FuncFlagSet

Source from the content-addressed store, hash-verified

14func TestFuncCompat(t *testing.T) {
15 // compare behavior with the stdlib 'flag' package
16 type FuncFlagSet interface {
17 Func(name string, usage string, fn func(string) error)
18 Parse([]string) error
19 }
20
21 unitTestErr := errors.New("unit test error")
22 runCase := func(f FuncFlagSet, name string, args []string) (values []string, err error) {

Callers 9

TestFuncCompatFunction · 0.65
TestEmptyDSFunction · 0.65
TestDSFunction · 0.65
TestDSDefaultFunction · 0.65
TestDSWithDefaultFunction · 0.65
TestDSAsSliceValueFunction · 0.65
TestDSCalledTwiceFunction · 0.65
TestEmptyS2I64Function · 0.65
TestS2I64Function · 0.65

Implementers 1

FlagSetflag.go

Calls

no outgoing calls

Tested by

no test coverage detected