forge
Explore
Log in

Don't you dare go Hollow

Forge-git drops two tests whose removal leaves every mutant caught

Browse files at this commit

9abc0591c2db9eaaacc1461839a37212c62e7994Ahmet Kaan GümüşParent: c885553
  • test
    • forge-git drops two tests whose removal leaves every mutant caught
Show full message
✅ test: forge-git drops two tests whose removal leaves every mutant caught

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.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")