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

Function len_and_is_empty

nodedb-vector/src/collection/codec_dispatch.rs:156–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155 #[test]
156 fn len_and_is_empty() {
157 let vecs = make_vectors(20, 4);
158 let codec = build_collection_codec("bbq", &vecs, 4, 8, 50, 1).unwrap();
159 assert_eq!(codec.len(), 20);
160 assert!(!codec.is_empty());
161 }
162
163 #[test]
164 fn quantization_tag() {

Callers

nothing calls this directly

Calls 2

build_collection_codecFunction · 0.85
make_vectorsFunction · 0.70

Tested by

no test coverage detected