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

Function setUpSSFlagSet

string_slice_test.go:13–17  ·  view source on GitHub ↗
(ssp *[]string)

Source from the content-addressed store, hash-verified

11)
12
13func setUpSSFlagSet(ssp *[]string) *FlagSet {
14 f := NewFlagSet("test", ContinueOnError)
15 f.StringSliceVar(ssp, "ss", []string{}, "Command separated list!")
16 return f
17}
18
19func setUpSSFlagSetWithDefault(ssp *[]string) *FlagSet {
20 f := NewFlagSet("test", ContinueOnError)

Callers 7

TestEmptySSFunction · 0.85
TestEmptySSValueFunction · 0.85
TestSSFunction · 0.85
TestSSCalledTwiceFunction · 0.85
TestSSWithCommaFunction · 0.85
TestSSWithSquareBracketsFunction · 0.85
TestSSAsSliceValueFunction · 0.85

Calls 2

StringSliceVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected