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

Function setUpSAFlagSet

string_array_test.go:12–16  ·  view source on GitHub ↗
(sap *[]string)

Source from the content-addressed store, hash-verified

10)
11
12func setUpSAFlagSet(sap *[]string) *FlagSet {
13 f := NewFlagSet("test", ContinueOnError)
14 f.StringArrayVar(sap, "sa", []string{}, "Command separated list!")
15 return f
16}
17
18func setUpSAFlagSetWithDefault(sap *[]string) *FlagSet {
19 f := NewFlagSet("test", ContinueOnError)

Callers 6

TestEmptySAFunction · 0.85
TestEmptySAValueFunction · 0.85
TestSACalledTwiceFunction · 0.85
TestSAWithSpecialCharFunction · 0.85
TestSAAsSliceValueFunction · 0.85
TestSAWithSquareBracketsFunction · 0.85

Calls 2

StringArrayVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected