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

Function setUpS2SFlagSet

string_to_string_test.go:15–19  ·  view source on GitHub ↗
(s2sp *map[string]string)

Source from the content-addressed store, hash-verified

13)
14
15func setUpS2SFlagSet(s2sp *map[string]string) *FlagSet {
16 f := NewFlagSet("test", ContinueOnError)
17 f.StringToStringVar(s2sp, "s2s", map[string]string{}, "Command separated ls2st!")
18 return f
19}
20
21func setUpS2SFlagSetWithDefault(s2sp *map[string]string) *FlagSet {
22 f := NewFlagSet("test", ContinueOnError)

Callers 3

TestEmptyS2SFunction · 0.85
TestS2SFunction · 0.85
TestS2SCalledTwiceFunction · 0.85

Calls 2

StringToStringVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected