(b *testing.B)
| 141 | } |
| 142 | |
| 143 | func BenchmarkReadHaxMapUint(b *testing.B) { |
| 144 | m := setupHaxMap(b) |
| 145 | b.ResetTimer() |
| 146 | |
| 147 | b.RunParallel(func(pb *testing.PB) { |
| 148 | for pb.Next() { |
| 149 | for i := uintptr(0); i < benchmarkItemCount; i++ { |
| 150 | j, _ := m.Get(i) |
| 151 | if j != i { |
| 152 | b.Fail() |
| 153 | } |
| 154 | } |
| 155 | } |
| 156 | }) |
| 157 | } |
| 158 | |
| 159 | func BenchmarkReadHaxMapWithWritesUint(b *testing.B) { |
| 160 | m := setupHaxMap(b) |
nothing calls this directly
no test coverage detected
searching dependent graphs…