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

Function TestWrappedRecordDotWithNull

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

Source from the content-addressed store, hash-verified

94}
95
96func 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
110func TestWrappedRecordDotWithIncompatibleSizes(t *testing.T) {
111 assertPanic(t, "dot product should panic with vectors of different sizes", func() {

Callers

nothing calls this directly

Calls 3

assertPanicFunction · 0.85
WrapRecordFunction · 0.85
DotMethod · 0.65

Tested by

no test coverage detected