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

Function insert_meta_token_valid

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

Source from the content-addressed store, hash-verified

151
152 #[test]
153 fn insert_meta_token_valid() {
154 let mut store = MultiVectorStore::new(8, MultiVecMode::MetaToken { k: 4 });
155 let doc = make_doc(10, 4, 8);
156 assert!(store.insert(doc).is_ok());
157 assert_eq!(store.k(), Some(4));
158 }
159
160 #[test]
161 fn insert_meta_token_count_mismatch() {

Callers

nothing calls this directly

Calls 1

make_docFunction · 0.85

Tested by

no test coverage detected