(b *testing.B)
| 19 | } |
| 20 | |
| 21 | func BenchmarkIndexPathForId(b *testing.B) { |
| 22 | i := setupIndex("/foo") |
| 23 | for n := 0; n < b.N; n++ { |
| 24 | if s := i.pathForID(uint64(n%666) + 1); s == "" { |
| 25 | b.Fatal("just to make sure the compiler doesn't optimize it away :D") |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func BenchmarkIndexPathFor(b *testing.B) { |
| 31 | i := setupIndex("/foo") |
nothing calls this directly
no test coverage detected