(b *testing.B)
| 899 | } |
| 900 | |
| 901 | func BenchmarkReadComplex128(b *testing.B) { |
| 902 | f := complex(rand.Float64(), rand.Float64()) |
| 903 | data := AppendComplex128(nil, f) |
| 904 | rd := NewReader(NewEndlessReader(data, b)) |
| 905 | b.SetBytes(int64(len(data))) |
| 906 | b.ReportAllocs() |
| 907 | b.ResetTimer() |
| 908 | for i := 0; i < b.N; i++ { |
| 909 | _, err := rd.ReadComplex128() |
| 910 | if err != nil { |
| 911 | b.Fatal(err) |
| 912 | } |
| 913 | } |
| 914 | } |
| 915 | |
| 916 | func TestTime(t *testing.T) { |
| 917 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…