MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / temp_store

Function temp_store

atomic-repository/src/redb_change_store/tests.rs:10–15  ·  view source on GitHub ↗

Helper: create a temporary redb store.

()

Source from the content-addressed store, hash-verified

8
9/// Helper: create a temporary redb store.
10fn temp_store() -> (tempfile::TempDir, RedbChangeStore) {
11 let dir = tempfile::tempdir().unwrap();
12 let db_path = dir.path().join("test_change_store.redb");
13 let store = RedbChangeStore::open(&db_path).unwrap();
14 (dir, store)
15}
16
17/// Helper: create a simple test Change.
18fn make_test_change(message: &str, content: &[u8]) -> Change {

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected