refactor(typescript-edit-benchmark): updated mutation plans

- Update benchmark fixtures archive file.
- Adjust mutation plan block sizes and counts in generator script.
- Remove postmortem quit test.
This commit is contained in:
can1357
2026-07-30 07:57:44 +02:00
parent 38ebd30337
commit a4773c0baa
4 changed files with 5 additions and 34 deletions
Binary file not shown.
@@ -134,9 +134,9 @@ interface MutationPlan {
}
const BLOCK_SIZES: SizeRange[] = [
[6, 20],
[6, 20],
[21, 60],
[61, 150],
[6, 20],
[21, 60],
[6, 20],
@@ -171,11 +171,11 @@ const MUTATION_PLANS: Record<string, MutationPlan> = {
"swap-adjacent-lines": { count: 6 },
"duplicate-line-flip": { count: 6 },
"identifier-multi-edit": { count: 10 },
"swap-if-else": { count: 6 },
"wrap-redundant-if": { count: 12, sizes: BLOCK_SIZES },
"swap-sibling-blocks": { count: 12, sizes: BLOCK_SIZES },
"swap-if-else": { count: 8 },
"wrap-redundant-if": { count: 14, sizes: BLOCK_SIZES },
"swap-sibling-blocks": { count: 14, sizes: BLOCK_SIZES },
"duplicate-block": { count: 6, sizes: BLOCK_SIZES },
"move-distant-block": { count: 14, sizes: BLOCK_SIZES },
"move-distant-block": { count: 10, sizes: BLOCK_SIZES },
"remove-case-label": { count: 8 },
"composite-multi-edit": { count: 16 },
};
-4
View File
@@ -2,10 +2,6 @@
## [Unreleased]
### Added
- Added a `postmortem.quit` configuration option to safely handle shutdown paths when the terminal output has already disconnected.
## [17.1.8] - 2026-07-28
### Added
@@ -1,25 +0,0 @@
import { describe, expect, it } from "bun:test";
import * as postmortem from "../src/postmortem";
const childFlag = "--quit-without-drain-child";
if (process.argv.includes(childFlag)) {
Object.defineProperty(process.stdout, "writableLength", { value: 1, configurable: true });
await postmortem.quit(23, { drainStdout: false });
}
describe("postmortem quit", () => {
it("exits without waiting for pending stdout when draining is disabled", async () => {
const child = Bun.spawn([process.execPath, import.meta.path, childFlag], {
stdout: "pipe",
stderr: "pipe",
});
const timeout = Bun.sleep(500).then(() => "timeout" as const);
try {
expect(await Promise.race([child.exited, timeout])).toBe(23);
} finally {
child.kill();
await child.exited;
}
});
});