test(ui-primitives): exclude DiffBlock's assertNever default arm from coverage

The copyText switch's default arm calls assertNever, the closed-union
backstop that the per-file 100% coverage gate cannot reach without a
forged row kind. The assertNever function itself already carries the
v8 ignore; mark the switch arm that reaches it the same way, matching
TodoPanel's StatusGlyph default arm.
This commit is contained in:
Chinesezjc
2026-07-30 19:42:11 +08:00
parent a0a9e9733a
commit 452f11907e

View File

@@ -128,6 +128,7 @@ function copyText(rows: DiffRow[]): string {
case 'add': return `+ ${row.text}`
case 'path': return row.text
case 'gap': return row.text
/* v8 ignore next -- closed-union backstop; only reached if a row kind is forged */
default: return assertNever(row.kind)
}
}).join('\n')