MCPcopy Index your code
hub / github.com/labstack/echo / mustParseCIDR

Function mustParseCIDR

ip_test.go:14–20  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

12)
13
14func mustParseCIDR(s string) *net.IPNet {
15 _, IPNet, err := net.ParseCIDR(s)
16 if err != nil {
17 panic(err)
18 }
19 return IPNet
20}
21
22func TestIPChecker_TrustOption(t *testing.T) {
23 var testCases = []struct {

Callers 2

TestTrustIPRangeFunction · 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…