MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestIPIsAllowed

Function TestIPIsAllowed

internal/iplibrary/list_utils_test.go:11–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestIPIsAllowed(t *testing.T) {
12 if !testutils.IsSingleTesting() {
13 return
14 }
15
16 var manager = NewIPListManager()
17 manager.Init()
18
19 var before = time.Now()
20 defer func() {
21 t.Log(time.Since(before).Seconds()*1000, "ms")
22 }()
23 t.Log(AllowIP("127.0.0.1", 0))
24 t.Log(AllowIP("127.0.0.1", 23))
25}

Callers

nothing calls this directly

Calls 5

IsSingleTestingFunction · 0.92
NewIPListManagerFunction · 0.85
AllowIPFunction · 0.85
LogMethod · 0.80
InitMethod · 0.65

Tested by

no test coverage detected