MCPcopy Create free account
hub / github.com/evilsocket/sum / TestWrappedRecordCosineWithIncompatibleSizes

Function TestWrappedRecordCosineWithIncompatibleSizes

wrapper/record_test.go:158–162  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func TestWrappedRecordCosineWithIncompatibleSizes(t *testing.T) {
159 assertPanic(t, "cosine similarity should panic with vectors of different sizes", func() {
160 WrapRecord(&testRecord).Cosine(WrapRecord(&testShorterRecord))
161 })
162}

Callers

nothing calls this directly

Calls 3

assertPanicFunction · 0.85
WrapRecordFunction · 0.85
CosineMethod · 0.80

Tested by

no test coverage detected