(root: &Path, hash: &str, flags: &[&str])
| 18 | } |
| 19 | |
| 20 | fn run(root: &Path, hash: &str, flags: &[&str]) -> String { |
| 21 | let output = Command::new(env!("CARGO_BIN_EXE_atomic")) |
| 22 | .current_dir(root) |
| 23 | .args(["--no-color", "change", hash]) |
| 24 | .args(flags) |
| 25 | .env("ATOMIC_SERVICE", "local") |
| 26 | .env_remove("ATOMIC_RPC") |
| 27 | .output() |
| 28 | .unwrap(); |
| 29 | assert!( |
| 30 | output.status.success(), |
| 31 | "{}", |
| 32 | String::from_utf8_lossy(&output.stderr) |
| 33 | ); |
| 34 | String::from_utf8(output.stdout).unwrap() |
| 35 | } |
| 36 | |
| 37 | #[test] |
| 38 | fn change_tree_expands_paths_without_emoji_and_preserves_other_formats() { |
no test coverage detected