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

Function setUpIPNetFlagSet

ipnet_slice_test.go:22–26  ·  view source on GitHub ↗
(ipsp *[]net.IPNet)

Source from the content-addressed store, hash-verified

20}
21
22func setUpIPNetFlagSet(ipsp *[]net.IPNet) *FlagSet {
23 f := NewFlagSet("test", ContinueOnError)
24 f.IPNetSliceVar(ipsp, "cidrs", []net.IPNet{}, "Command separated list!")
25 return f
26}
27
28func setUpIPNetFlagSetWithDefault(ipsp *[]net.IPNet) *FlagSet {
29 f := NewFlagSet("test", ContinueOnError)

Callers 4

TestEmptyIPNetFunction · 0.85
TestIPNetsFunction · 0.85
TestIPNetCalledTwiceFunction · 0.85
TestIPNetBadQuotingFunction · 0.85

Calls 2

IPNetSliceVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected