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

Function test_pristine_open

atomic-core/src/pristine/txn/pristine.rs:319–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317
318 #[test]
319 fn test_pristine_open() {
320 let dir = tempdir().unwrap();
321 let db_path = dir.path().join("pristine");
322 let pristine = Pristine::open(&db_path).unwrap();
323
324 // Should be able to create transactions
325 let _read = pristine.read_txn().unwrap();
326 let _write = pristine.write_txn().unwrap();
327 }
328
329 #[test]
330 fn test_pristine_reopen() {

Callers

nothing calls this directly

Calls 4

read_txnMethod · 0.80
write_txnMethod · 0.80
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected