| 14 | func 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) { |