(b *testing.B)
| 181 | } |
| 182 | |
| 183 | func BenchmarkJobQueuePushPopDone10k(b *testing.B) { |
| 184 | files := genFiles(10000) |
| 185 | |
| 186 | b.ResetTimer() |
| 187 | for i := 0; i < b.N; i++ { |
| 188 | q := newJobQueue() |
| 189 | for _, f := range files { |
| 190 | q.Push(f.Name, 0, time.Time{}) |
| 191 | } |
| 192 | for range files { |
| 193 | n, _ := q.Pop() |
| 194 | q.Done(n) |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func TestQueuePagination(t *testing.T) { |
| 200 | q := newJobQueue() |
nothing calls this directly
no test coverage detected