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

Function test_repo

atomic-cli/src/commands/restore.rs:849–854  ·  view source on GitHub ↗

Initialize a repository in a temp dir. Returns the guard, repo, and root.

()

Source from the content-addressed store, hash-verified

847
848 /// Initialize a repository in a temp dir. Returns the guard, repo, and root.
849 fn test_repo() -> (TempDir, Repository, PathBuf) {
850 let dir = TempDir::new().expect("create tempdir");
851 let root = dir.path().to_path_buf();
852 let repo = Repository::init(&root).expect("init repository");
853 (dir, repo, root)
854 }
855
856 #[test]
857 fn test_restore_modified_restores_pristine_content() {

Calls 2

initFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected