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

Function insert_meta_token_count_mismatch

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

Source from the content-addressed store, hash-verified

159
160 #[test]
161 fn insert_meta_token_count_mismatch() {
162 let mut store = MultiVectorStore::new(8, MultiVecMode::MetaToken { k: 4 });
163 let doc = make_doc(10, 3, 8); // 3 vectors but k=4
164 let err = store.insert(doc).unwrap_err();
165 assert!(matches!(
166 err,
167 MultivecError::MetaTokenCountMismatch {
168 expected: 4,
169 actual: 3
170 }
171 ));
172 }
173
174 #[test]
175 fn get_returns_inserted_doc() {

Callers

nothing calls this directly

Calls 2

make_docFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected