(b *testing.B)
| 857 | } |
| 858 | |
| 859 | func BenchmarkReadComplex64(b *testing.B) { |
| 860 | f := complex(rand.Float32(), rand.Float32()) |
| 861 | data := AppendComplex64(nil, f) |
| 862 | rd := NewReader(NewEndlessReader(data, b)) |
| 863 | b.SetBytes(int64(len(data))) |
| 864 | b.ReportAllocs() |
| 865 | b.ResetTimer() |
| 866 | for i := 0; i < b.N; i++ { |
| 867 | _, err := rd.ReadComplex64() |
| 868 | if err != nil { |
| 869 | b.Fatal(err) |
| 870 | } |
| 871 | } |
| 872 | } |
| 873 | |
| 874 | func TestReadComplex128(t *testing.T) { |
| 875 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…