MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / trait_bounds_compile

Function trait_bounds_compile

nodedb-vector/src/quantize/binary_codec.rs:161–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160 #[test]
161 fn trait_bounds_compile() {
162 let codec = make_codec(8);
163 let result = use_vector_codec(
164 &codec,
165 &[1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0],
166 &[-1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0],
167 );
168 assert!(result.is_finite());
169 }
170}

Callers

nothing calls this directly

Calls 2

make_codecFunction · 0.70
use_vector_codecFunction · 0.70

Tested by

no test coverage detected