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

Function setUpDSFlagSet

duration_slice_test.go:14–18  ·  view source on GitHub ↗
(dsp *[]time.Duration)

Source from the content-addressed store, hash-verified

12)
13
14func setUpDSFlagSet(dsp *[]time.Duration) *FlagSet {
15 f := NewFlagSet("test", ContinueOnError)
16 f.DurationSliceVar(dsp, "ds", []time.Duration{}, "Command separated list!")
17 return f
18}
19
20func setUpDSFlagSetWithDefault(dsp *[]time.Duration) *FlagSet {
21 f := NewFlagSet("test", ContinueOnError)

Callers 4

TestEmptyDSFunction · 0.85
TestDSFunction · 0.85
TestDSAsSliceValueFunction · 0.85
TestDSCalledTwiceFunction · 0.85

Calls 2

DurationSliceVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected