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

Function setUpUISFlagSet

uint_slice_test.go:10–14  ·  view source on GitHub ↗
(uisp *[]uint)

Source from the content-addressed store, hash-verified

8)
9
10func setUpUISFlagSet(uisp *[]uint) *FlagSet {
11 f := NewFlagSet("test", ContinueOnError)
12 f.UintSliceVar(uisp, "uis", []uint{}, "Command separated list!")
13 return f
14}
15
16func setUpUISFlagSetWithDefault(uisp *[]uint) *FlagSet {
17 f := NewFlagSet("test", ContinueOnError)

Callers 4

TestEmptyUISFunction · 0.85
TestUISFunction · 0.85
TestUISAsSliceValueFunction · 0.85
TestUISCalledTwiceFunction · 0.85

Calls 2

UintSliceVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected