(root: &std::path::Path, home: &std::path::Path, args: &[&str])
| 10 | const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic"); |
| 11 | |
| 12 | fn atomic(root: &std::path::Path, home: &std::path::Path, args: &[&str]) -> Output { |
| 13 | Command::new(ATOMIC_BIN) |
| 14 | .args(args) |
| 15 | .current_dir(root) |
| 16 | .env("HOME", home) |
| 17 | .env("ATOMIC_HOME", home.join(".atomic")) |
| 18 | .output() |
| 19 | .expect("run atomic") |
| 20 | } |
| 21 | |
| 22 | fn atomic_ok(root: &std::path::Path, home: &std::path::Path, args: &[&str]) -> String { |
| 23 | let output = atomic(root, home, args); |
no test coverage detected