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

Interface BoolFuncFlagSet

bool_func_go1.21_test.go:16–19  ·  bool_func_go1.21_test.go::BoolFuncFlagSet

Source from the content-addressed store, hash-verified

14func TestBoolFuncCompat(t *testing.T) {
15 // compare behavior with the stdlib 'flag' package
16 type BoolFuncFlagSet interface {
17 BoolFunc(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 BoolFuncFlagSet, name string, args []string) (values []string, err error) {

Callers 2

TestBoolFuncCompatFunction · 0.65
TestBoolFuncCompatFunction · 0.65

Implementers 1

FlagSetflag.go

Calls

no outgoing calls

Tested by

no test coverage detected