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

Function equalCIDR

ipnet_slice_test.go:15–20  ·  view source on GitHub ↗
(c1 net.IPNet, c2 net.IPNet)

Source from the content-addressed store, hash-verified

13}
14
15func equalCIDR(c1 net.IPNet, c2 net.IPNet) bool {
16 if c1.String() == c2.String() {
17 return true
18 }
19 return false
20}
21
22func setUpIPNetFlagSet(ipsp *[]net.IPNet) *FlagSet {
23 f := NewFlagSet("test", ContinueOnError)

Callers 5

TestIPNetsFunction · 0.85
TestIPNetDefaultFunction · 0.85
TestIPNetWithDefaultFunction · 0.85
TestIPNetCalledTwiceFunction · 0.85
TestIPNetBadQuotingFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected