(b *testing.B)
| 216 | } |
| 217 | |
| 218 | func BenchmarkReadFloat32Bytes(b *testing.B) { |
| 219 | f := float32(3.14159) |
| 220 | buf := make([]byte, 0, 5) |
| 221 | buf = AppendFloat32(buf, f) |
| 222 | b.SetBytes(int64(len(buf))) |
| 223 | b.ReportAllocs() |
| 224 | b.ResetTimer() |
| 225 | for i := 0; i < b.N; i++ { |
| 226 | ReadFloat32Bytes(buf) |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | func TestReadBoolBytes(t *testing.T) { |
| 231 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…