(b *testing.B)
| 28 | } |
| 29 | |
| 30 | func BenchmarkWrappedRecordGet(b *testing.B) { |
| 31 | r := WrapRecord(&testRecord) |
| 32 | idx := 0 |
| 33 | v := testRecord.Data[idx] |
| 34 | |
| 35 | for i := 0; i < b.N; i++ { |
| 36 | if r.Get(idx) != v { |
| 37 | b.Fatalf("expected value %f at index %d, got %f", v, idx, r.Get(idx)) |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func BenchmarkWrappedRecordMeta(b *testing.B) { |
| 43 | r := WrapRecord(&testRecord) |
nothing calls this directly
no test coverage detected