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

Method Parse

func_go1.21_test.go:18–18  ·  view source on GitHub ↗
([]string)

Source from the content-addressed store, hash-verified

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")

Callers 15

TestEmptyDSFunction · 0.65
TestDSFunction · 0.65
TestDSDefaultFunction · 0.65
TestDSWithDefaultFunction · 0.65
TestDSAsSliceValueFunction · 0.65
TestDSCalledTwiceFunction · 0.65
TestEmptyS2I64Function · 0.65
TestS2I64Function · 0.65
TestS2I64DefaultFunction · 0.65
TestS2I64WithDefaultFunction · 0.65
TestS2I64CalledTwiceFunction · 0.65
TestEmptyIPFunction · 0.65

Implementers 1

FlagSetflag.go

Calls

no outgoing calls

Tested by 15

TestEmptyDSFunction · 0.52
TestDSFunction · 0.52
TestDSDefaultFunction · 0.52
TestDSWithDefaultFunction · 0.52
TestDSAsSliceValueFunction · 0.52
TestDSCalledTwiceFunction · 0.52
TestEmptyS2I64Function · 0.52
TestS2I64Function · 0.52
TestS2I64DefaultFunction · 0.52
TestS2I64WithDefaultFunction · 0.52
TestS2I64CalledTwiceFunction · 0.52
TestEmptyIPFunction · 0.52