(repo_dir: &Path, home_dir: &Path, args: &[&str])
| 17 | const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic"); |
| 18 | |
| 19 | fn atomic(repo_dir: &Path, home_dir: &Path, args: &[&str]) -> Output { |
| 20 | Command::new(ATOMIC_BIN) |
| 21 | .args(args) |
| 22 | .current_dir(repo_dir) |
| 23 | .env("HOME", home_dir) |
| 24 | .output() |
| 25 | .expect("run atomic") |
| 26 | } |
| 27 | |
| 28 | fn run(repo_dir: &Path, home_dir: &Path, args: &[&str]) -> String { |
| 29 | let output = atomic(repo_dir, home_dir, args); |
no test coverage detected