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

Function TestWrappedRecordMagnitudeWithNull

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

Source from the content-addressed store, hash-verified

123}
124
125func TestWrappedRecordMagnitudeWithNull(t *testing.T) {
126 assertPanic(t, "magnitude product should panic with null wrapped record", func() {
127 _ = WrapRecord(nil).Magnitude()
128 })
129}
130
131func TestWrappedRecordCosine(t *testing.T) {
132 a := WrapRecord(&pb.Record{Data: []float32{3, 6, 9}})

Callers

nothing calls this directly

Calls 3

assertPanicFunction · 0.85
WrapRecordFunction · 0.85
MagnitudeMethod · 0.80

Tested by

no test coverage detected