MCPcopy Index your code
hub / github.com/smallstep/cli / mustNebulaIPNet

Function mustNebulaIPNet

token/options_test.go:140–151  ·  view source on GitHub ↗
(t *testing.T, s string)

Source from the content-addressed store, hash-verified

138}
139
140func 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
153func mustNebulaCurve25519CA(t *testing.T) (nebula.Certificate, ed25519.PrivateKey) {
154 t.Helper()

Callers 1

TestOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…