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

Function TestWrappedRecordDotWithIncompatibleSizes

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

Source from the content-addressed store, hash-verified

108}
109
110func TestWrappedRecordDotWithIncompatibleSizes(t *testing.T) {
111 assertPanic(t, "dot product should panic with vectors of different sizes", func() {
112 WrapRecord(&testRecord).Dot(WrapRecord(&testShorterRecord))
113 })
114}
115
116func TestWrappedRecordMagnitude(t *testing.T) {
117 testRecord.Data = []float32{0, 0, 2}

Callers

nothing calls this directly

Calls 3

assertPanicFunction · 0.85
WrapRecordFunction · 0.85
DotMethod · 0.65

Tested by

no test coverage detected