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

Function TestParseQueue_Process

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

Source from the content-addressed store, hash-verified

12)
13
14func TestParseQueue_Process(t *testing.T) {
15 if !testutils.IsSingleTesting() {
16 return
17 }
18
19 var queue = agents.NewQueue()
20 go queue.Start()
21 time.Sleep(1 * time.Second)
22 queue.Push("220.181.13.100")
23 time.Sleep(1 * time.Second)
24}
25
26func TestParseQueue_ParseIP(t *testing.T) {
27 if !testutils.IsSingleTesting() {

Callers

nothing calls this directly

Calls 4

IsSingleTestingFunction · 0.92
NewQueueFunction · 0.92
StartMethod · 0.65
PushMethod · 0.45

Tested by

no test coverage detected