(t *testing.T)
| 94 | } |
| 95 | |
| 96 | func TestWrappedRecordDotWithNull(t *testing.T) { |
| 97 | assertPanic(t, "dot product should panic with null wrapped record", func() { |
| 98 | WrapRecord(nil).Dot(WrapRecord(nil)) |
| 99 | }) |
| 100 | |
| 101 | assertPanic(t, "dot product should panic with null wrapped record", func() { |
| 102 | WrapRecord(&testRecord).Dot(WrapRecord(nil)) |
| 103 | }) |
| 104 | |
| 105 | assertPanic(t, "dot product should panic with null wrapped record", func() { |
| 106 | WrapRecord(nil).Dot(WrapRecord(&testRecord)) |
| 107 | }) |
| 108 | } |
| 109 | |
| 110 | func TestWrappedRecordDotWithIncompatibleSizes(t *testing.T) { |
| 111 | assertPanic(t, "dot product should panic with vectors of different sizes", func() { |
nothing calls this directly
no test coverage detected