MCPcopy Create free account
hub / github.com/egonelbre/exp / queueP2Test

Function queueP2Test

queues/testutils_test.go:108–118  ·  view source on GitHub ↗
(t *testing.T, q Queue)

Source from the content-addressed store, hash-verified

106}
107
108func queueP2Test(t *testing.T, q Queue) {
109 runParallelTest(t, func(N int) {
110 for i := 0; i < N; i += 1 {
111 q.Enqueue(i)
112 _, ok := q.Dequeue()
113 if !ok {
114 t.Fatalf("Was unable to get value")
115 }
116 }
117 })
118}

Callers 15

TestCFifoFunction · 0.85
TestZLifoFunction · 0.85
TestZFifoFunction · 0.85
TestScLifoFunction · 0.85
TestScFifoFunction · 0.85
TestSmLifoFunction · 0.85
TestSmFifoFunction · 0.85
TestRcLifoFunction · 0.85
TestRcFifoFunction · 0.85
TestRmLifoFunction · 0.85
TestRmFifoFunction · 0.85
TestPcLifoFunction · 0.85

Calls 3

runParallelTestFunction · 0.85
EnqueueMethod · 0.65
DequeueMethod · 0.65

Tested by

no test coverage detected