Forge-git drops two tests whose removal leaves every mutant caught
Browse files at this commit9abc0591c2db9eaaacc1461839a37212c62e7994Parent: c885553- test
- forge-git drops two tests whose removal leaves every mutant caught
2 changed files +0 -14
crates/forge-git/src/maintenance.rsmodified+0 -8
| @@ -101,12 +101,4 @@ mod tests { | |||
| 101 | // A second run on an unchanged repo must also succeed. | 101 | // A second run on an unchanged repo must also succeed. |
| 102 | after_push(&env, &bare).await.expect("second after_push"); | 102 | after_push(&env, &bare).await.expect("second after_push"); |
| 103 | } | 103 | } |
| 104 | - | ||
| 105 | - #[tokio::test] | ||
| 106 | - async fn after_push_reports_missing_repo() { | ||
| 107 | - let tmp = tempfile::tempdir().expect("tempdir"); | ||
| 108 | - let env = env_for(tmp.path()); | ||
| 109 | - let missing = tmp.path().join("nope.git"); | ||
| 110 | - assert!(after_push(&env, &missing).await.is_err()); | ||
| 111 | - } | ||
| 112 | } | 104 | } |
crates/forge-git/src/repo.rsmodified+0 -6
| @@ -375,12 +375,6 @@ mod tests { | |||
| 375 | assert!(trash.join("not-a-trash-entry").exists()); | 375 | assert!(trash.join("not-a-trash-entry").exists()); |
| 376 | } | 376 | } |
| 377 | 377 | ||
| 378 | - #[test] | ||
| 379 | - fn list_trash_without_directory_is_empty() { | ||
| 380 | - let dir = tempfile::tempdir().unwrap(); | ||
| 381 | - assert!(list_trash(dir.path()).unwrap().is_empty()); | ||
| 382 | - } | ||
| 383 | - | ||
| 384 | /// Runs `git` in `cwd` with a fixed identity and returns stdout. Panics on failure (tests only). | 378 | /// Runs `git` in `cwd` with a fixed identity and returns stdout. Panics on failure (tests only). |
| 385 | fn git_in(cwd: &Path, args: &[&str]) -> String { | 379 | fn git_in(cwd: &Path, args: &[&str]) -> String { |
| 386 | let out = std::process::Command::new("/usr/bin/git") | 380 | let out = std::process::Command::new("/usr/bin/git") |