MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / TestParseQueue_ParseIP

Function TestParseQueue_ParseIP

internal/utils/agents/queue_test.go:26–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func TestParseQueue_ParseIP(t *testing.T) {
27 if !testutils.IsSingleTesting() {
28 return
29 }
30
31 var queue = agents.NewQueue()
32 for _, ip := range []string{
33 "192.168.1.100",
34 "42.120.160.1",
35 "42.236.10.98",
36 "124.115.0.100",
37 } {
38 ptr, err := queue.ParseIP(ip)
39 if err != nil {
40 t.Log(ip, "=>", err)
41 continue
42 }
43 t.Log(ip, "=>", ptr)
44 }
45}
46
47func TestParseQueue_ParsePtr(t *testing.T) {
48 var a = assert.NewAssertion(t)

Callers

nothing calls this directly

Calls 4

IsSingleTestingFunction · 0.92
NewQueueFunction · 0.92
ParseIPMethod · 0.80
LogMethod · 0.80

Tested by

no test coverage detected