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

Function create_temp_repo

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

Source from the content-addressed store, hash-verified

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

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected