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

Function create_temp_repo

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

Source from the content-addressed store, hash-verified

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

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected