(t *testing.T, s string)
| 138 | } |
| 139 | |
| 140 | func mustNebulaIPNet(t *testing.T, s string) *net.IPNet { |
| 141 | t.Helper() |
| 142 | ip, ipNet, err := net.ParseCIDR(s) |
| 143 | require.NoError(t, err) |
| 144 | |
| 145 | if ip = ip.To4(); ip == nil { |
| 146 | require.Failf(t, "nebula only supports ipv4, have %s", s) |
| 147 | } |
| 148 | |
| 149 | ipNet.IP = ip |
| 150 | return ipNet |
| 151 | } |
| 152 | |
| 153 | func mustNebulaCurve25519CA(t *testing.T) (nebula.Certificate, ed25519.PrivateKey) { |
| 154 | t.Helper() |
no outgoing calls
no test coverage detected
searching dependent graphs…