(b *testing.B)
| 1183 | } |
| 1184 | |
| 1185 | func BenchmarkHashFunc(b *testing.B) { |
| 1186 | key := make([]byte, 8) |
| 1187 | rand.Read(key) |
| 1188 | |
| 1189 | b.ResetTimer() |
| 1190 | for i := 0; i < b.N; i++ { |
| 1191 | hashFunc(key) |
| 1192 | } |
| 1193 | } |
| 1194 | |
| 1195 | func benchmarkTTL(expireSeconds int) func(b *testing.B) { |
| 1196 | return func(b *testing.B) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…