(t *testing.T)
| 142 | } |
| 143 | |
| 144 | func TestWrappedRecordCosineWithNull(t *testing.T) { |
| 145 | assertPanic(t, "cosine similarity should panic with null wrapped record", func() { |
| 146 | WrapRecord(nil).Cosine(WrapRecord(nil)) |
| 147 | }) |
| 148 | |
| 149 | assertPanic(t, "cosine similarity should panic with null wrapped record", func() { |
| 150 | WrapRecord(&testRecord).Cosine(WrapRecord(nil)) |
| 151 | }) |
| 152 | |
| 153 | assertPanic(t, "cosine similarity should panic with null wrapped record", func() { |
| 154 | WrapRecord(nil).Cosine(WrapRecord(&testRecord)) |
| 155 | }) |
| 156 | } |
| 157 | |
| 158 | func TestWrappedRecordCosineWithIncompatibleSizes(t *testing.T) { |
| 159 | assertPanic(t, "cosine similarity should panic with vectors of different sizes", func() { |
nothing calls this directly
no test coverage detected