(b *testing.B)
| 186 | } |
| 187 | |
| 188 | func BenchmarkReadFloat64Bytes(b *testing.B) { |
| 189 | f := float64(3.14159) |
| 190 | buf := make([]byte, 0, 9) |
| 191 | buf = AppendFloat64(buf, f) |
| 192 | b.SetBytes(int64(len(buf))) |
| 193 | b.ReportAllocs() |
| 194 | b.ResetTimer() |
| 195 | for i := 0; i < b.N; i++ { |
| 196 | ReadFloat64Bytes(buf) |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | func TestReadFloat32Bytes(t *testing.T) { |
| 201 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…