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

Function make_engine

nodedb/src/engine/document/store/engine/tests.rs:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6use crate::engine::sparse::btree::SparseEngine;
7
8fn make_engine() -> (SparseEngine, tempfile::TempDir) {
9 let dir = tempfile::tempdir().unwrap();
10 let engine = SparseEngine::open(&dir.path().join("doc.redb")).unwrap();
11 (engine, dir)
12}
13
14#[test]
15fn put_and_get_document() {

Callers 10

put_and_get_documentFunction · 0.70
delete_documentFunction · 0.70
overwrite_documentFunction · 0.70
array_index_extractionFunction · 0.70
nested_field_indexFunction · 0.70
raw_msgpack_roundtripFunction · 0.70
collections_are_isolatedFunction · 0.70

Calls 3

joinMethod · 0.80
openFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected