Function
benchmarkConnSeek
(b *testing.B, conn *Conn, _ []byte)
Source from the content-addressed store, hash-verified
| 1230 | } |
| 1231 | |
| 1232 | func benchmarkConnSeek(b *testing.B, conn *Conn, _ []byte) { |
| 1233 | for i := 0; i != b.N; i++ { |
| 1234 | if _, err := conn.Seek(int64(i%benchmarkMessageCount), SeekAbsolute); err != nil { |
| 1235 | b.Error(err) |
| 1236 | return |
| 1237 | } |
| 1238 | } |
| 1239 | } |
| 1240 | |
| 1241 | func benchmarkConnRead(b *testing.B, conn *Conn, a []byte) { |
| 1242 | n := 0 |
Callers
nothing calls this directly
Tested by
no test coverage detected