(b *testing.B, queue Queue, size int)
| 118 | } |
| 119 | |
| 120 | func benchmarkGetFirst(b *testing.B, queue Queue, size int) { |
| 121 | for i := 0; i < size; i++ { |
| 122 | queue.AddLast(newBenchmarkTask()) |
| 123 | } |
| 124 | b.ResetTimer() |
| 125 | for i := 0; i < b.N; i++ { |
| 126 | queue.GetFirst() |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | func benchmarkGetByID(b *testing.B, queue Queue, size int) { |
| 131 | uuids := make([]string, 0, size) |
no test coverage detected