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

Function setUpI32SFlagSet

int32_slice_test.go:14–18  ·  view source on GitHub ↗
(isp *[]int32)

Source from the content-addressed store, hash-verified

12)
13
14func setUpI32SFlagSet(isp *[]int32) *FlagSet {
15 f := NewFlagSet("test", ContinueOnError)
16 f.Int32SliceVar(isp, "is", []int32{}, "Command separated list!")
17 return f
18}
19
20func setUpI32SFlagSetWithDefault(isp *[]int32) *FlagSet {
21 f := NewFlagSet("test", ContinueOnError)

Callers 4

TestEmptyI32SFunction · 0.85
TestI32SFunction · 0.85
TestI32SAsSliceValueFunction · 0.85
TestI32SCalledTwiceFunction · 0.85

Calls 2

Int32SliceVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected