(t *testing.T)
| 114 | } |
| 115 | |
| 116 | func TestWrappedRecordMagnitude(t *testing.T) { |
| 117 | testRecord.Data = []float32{0, 0, 2} |
| 118 | shouldBe := 2.0 |
| 119 | a := WrapRecord(&testRecord) |
| 120 | if mag := a.Magnitude(); mag != shouldBe { |
| 121 | t.Fatalf("magnitude should be %f, got %f", shouldBe, mag) |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | func TestWrappedRecordMagnitudeWithNull(t *testing.T) { |
| 126 | assertPanic(t, "magnitude product should panic with null wrapped record", func() { |
nothing calls this directly
no test coverage detected