From 47b9bd6fa7cb982899ed76e4d0352b384489b5de Mon Sep 17 00:00:00 2001 From: PathGao Date: Mon, 3 Aug 2026 16:55:56 +0800 Subject: [PATCH] chore(tests): delete 14 source-text tests that no defect can fail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Measured against injected defects, these 14 files detect that a specific line was edited and nothing else. Each one stayed green while a real defect in its own stated subject was live; four of them are the only file that greps the line they pin, so the catch they do provide is the rename detector #418 rules out, not coverage. Four assertions inside them were the exception — they pin something no compiler can see (a Tauri command name, a locale's own dictionary entry, a CSS duration, an `async fn` whose absence only deadlocks on Windows). Those move into surviving files rather than being lost: findCollapsedMatches FOLD_TRANSITION_MS vs the styles.css transition -> foldLayout.test.ts toolbarCustomization two per-locale translation tests (they import and run the dictionary) -> i18nCoverage.test.ts windowsPdfExport invoke() name <-> generate_handler! registration -> macosPdfExport.test.ts tabContextMenuIsolation create_transfer_window must stay `async` -> windowOrganization.test.ts Five files from the same list are kept: each was measured to catch a real defect that nothing else catches. See the pull request for the per-file table. 562 -> 524 tests; 199 assertions removed, 5 tests added back by the salvage. Every mutation the suite caught before it still catches, including the three controls (sanitizer `