(b *testing.B)
| 28 | } |
| 29 | |
| 30 | func BenchmarkIndexPathFor(b *testing.B) { |
| 31 | i := setupIndex("/foo") |
| 32 | for n := 0; n < b.N; n++ { |
| 33 | testRecord.Id = uint64(n%666) + 1 |
| 34 | if s := i.pathFor(&testRecord); s == "" { |
| 35 | b.Fatal("just to make sure the compiler doesn't optimize it away :D") |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func BenchmarkIndexForEach(b *testing.B) { |
| 41 | setupRecords(b, true, false) |
nothing calls this directly
no test coverage detected