From 9abc0591c2db9eaaacc1461839a37212c62e7994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 23 Oct 2026 15:33:41 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test:=20forge-git=20drops=20two=20t?= =?UTF-8?q?ests=20whose=20removal=20leaves=20every=20mutant=20caught?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Phase 2 on forge-git, gated with cargo-mutants (full suite vs reduced suite). Deleted maintenance::tests::after_push_reports_missing_repo and repo::tests::list_trash_without_directory_is_empty. The reduced run matched the full run: 487 caught, 104 missed, so no mutant became newly missed. Tests: 95 before, 93 after. cargo nextest run -p forge-git: 93 passed. --- crates/forge-git/src/maintenance.rs | 8 -------- crates/forge-git/src/repo.rs | 6 ------ 2 files changed, 14 deletions(-) diff --git a/crates/forge-git/src/maintenance.rs b/crates/forge-git/src/maintenance.rs index 0aaa95a..7c5500e 100644 --- a/crates/forge-git/src/maintenance.rs +++ b/crates/forge-git/src/maintenance.rs @@ -101,12 +101,4 @@ mod tests { // A second run on an unchanged repo must also succeed. after_push(&env, &bare).await.expect("second after_push"); } - - #[tokio::test] - async fn after_push_reports_missing_repo() { - let tmp = tempfile::tempdir().expect("tempdir"); - let env = env_for(tmp.path()); - let missing = tmp.path().join("nope.git"); - assert!(after_push(&env, &missing).await.is_err()); - } } diff --git a/crates/forge-git/src/repo.rs b/crates/forge-git/src/repo.rs index 9678701..085ce76 100644 --- a/crates/forge-git/src/repo.rs +++ b/crates/forge-git/src/repo.rs @@ -375,12 +375,6 @@ mod tests { assert!(trash.join("not-a-trash-entry").exists()); } - #[test] - fn list_trash_without_directory_is_empty() { - let dir = tempfile::tempdir().unwrap(); - assert!(list_trash(dir.path()).unwrap().is_empty()); - } - /// Runs `git` in `cwd` with a fixed identity and returns stdout. Panics on failure (tests only). fn git_in(cwd: &Path, args: &[&str]) -> String { let out = std::process::Command::new("/usr/bin/git")