(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func TestWrappedRecordGet(t *testing.T) { |
| 54 | r := WrapRecord(&testRecord) |
| 55 | for idx, v := range testRecord.Data { |
| 56 | if r.Get(idx) != v { |
| 57 | t.Fatalf("expected value %f at index %d, got %f", v, idx, r.Get(idx)) |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func TestWrappedRecordGetWithInvalidIndex(t *testing.T) { |
| 63 | assertPanic(t, "access to an invalid index should panic", func() { |
nothing calls this directly
no test coverage detected