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

Function create_temp_repo

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

Source from the content-addressed store, hash-verified

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

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected