Record one change touching `name` with the given content (a fixture shorthand).
(repo_dir: &Path, home_dir: &Path, name: &str, body: &str, message: &str)
| 945 | /// Record one change touching `name` with the given content (a fixture |
| 946 | /// shorthand). |
| 947 | fn record_file(repo_dir: &Path, home_dir: &Path, name: &str, body: &str, message: &str) { |
| 948 | std::fs::write(repo_dir.join(name), body).unwrap(); |
| 949 | run(repo_dir, home_dir, &["add", name]); |
| 950 | run(repo_dir, home_dir, &["record", "-m", message]); |
| 951 | } |
| 952 | |
| 953 | #[test] |
| 954 | fn restore_dry_run_single_file_dumps_pristine_bytes() { |
no test coverage detected