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

Function fixture

libatomic/src/review/incremental.rs:1164–1169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1162 use atomic_repository::{IntentCreateOptions, IntentCreateResult};
1163
1164 fn fixture() -> (tempfile::TempDir, Repository) {
1165 let dir = tempfile::tempdir().unwrap();
1166 let repo = Repository::init(dir.path()).unwrap();
1167 repo.init_vault().unwrap();
1168 (dir, repo)
1169 }
1170
1171 // Windows enforces redb's byte-range locks on ordinary file reads too.
1172 // Snapshot only while closed, then exercise the real read-only open path.

Calls 4

initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45
init_vaultMethod · 0.45