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

Function open_test_index

nodedb/src/engine/sparse/sparse_vector.rs:341–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 use super::*;
340
341 fn open_test_index() -> (SparseVectorIndex, tempfile::TempDir) {
342 let dir = tempfile::tempdir().unwrap();
343 let db = Arc::new(Database::create(dir.path().join("sparse.redb")).unwrap());
344 let idx = SparseVectorIndex::open(db).unwrap();
345 (idx, dir)
346 }
347
348 #[test]
349 fn multi_term_query() {

Callers 2

multi_term_queryFunction · 0.85
collection_isolationFunction · 0.85

Calls 4

joinMethod · 0.80
createFunction · 0.50
openFunction · 0.50
pathMethod · 0.45

Tested by 2

multi_term_queryFunction · 0.68
collection_isolationFunction · 0.68