(b *testing.B, conn *Conn, _ []byte)
| 1293 | } |
| 1294 | |
| 1295 | func benchmarkConnReadOffsets(b *testing.B, conn *Conn, _ []byte) { |
| 1296 | for i := 0; i != b.N; i++ { |
| 1297 | _, _, err := conn.ReadOffsets() |
| 1298 | if err != nil { |
| 1299 | b.Error(err) |
| 1300 | return |
| 1301 | } |
| 1302 | } |
| 1303 | } |
| 1304 | |
| 1305 | func benchmarkConnWrite(b *testing.B, conn *Conn, _ []byte) { |
| 1306 | a := make([]byte, 10e3) // 10 KB |
nothing calls this directly
no test coverage detected