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

Function setUpIPSFlagSet

ip_slice_test.go:10–14  ·  view source on GitHub ↗
(ipsp *[]net.IP)

Source from the content-addressed store, hash-verified

8)
9
10func setUpIPSFlagSet(ipsp *[]net.IP) *FlagSet {
11 f := NewFlagSet("test", ContinueOnError)
12 f.IPSliceVar(ipsp, "ips", []net.IP{}, "Command separated list!")
13 return f
14}
15
16func setUpIPSFlagSetWithDefault(ipsp *[]net.IP) *FlagSet {
17 f := NewFlagSet("test", ContinueOnError)

Callers 5

TestEmptyIPFunction · 0.85
TestIPSFunction · 0.85
TestIPSCalledTwiceFunction · 0.85
TestIPSAsSliceValueFunction · 0.85
TestIPSBadQuotingFunction · 0.85

Calls 2

IPSliceVarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected