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

Function iter_yields_all_docs

nodedb-vector/src/multivec/storage.rs:183–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181
182 #[test]
183 fn iter_yields_all_docs() {
184 let mut store = MultiVectorStore::new(2, MultiVecMode::PerToken);
185 for id in 0..5u32 {
186 store.insert(make_doc(id, 1, 2)).unwrap();
187 }
188 assert_eq!(store.iter().count(), 5);
189 }
190
191 #[test]
192 fn k_none_for_per_token() {

Callers

nothing calls this directly

Calls 2

make_docFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected