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

Function create_temp_repo

atomic-repository/src/repository/tests/mod.rs:28–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26// ── Shared Helpers ──────────────────────────────────────────────────────
27
28pub(super) fn create_temp_repo() -> (TempDir, Repository) {
29 let temp_dir = TempDir::new().unwrap();
30 let repo = Repository::init(temp_dir.path()).unwrap();
31 (temp_dir, repo)
32}
33
34/// Create a simple test change with the given message.
35pub(super) fn create_test_change(message: &str) -> Change {

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected