Guard more direct-file staging paths

This commit is contained in:
2026-06-13 07:17:03 +08:00
parent 4e9ca73fee
commit 68991951f5
3 changed files with 174 additions and 0 deletions

View File

@@ -6420,6 +6420,18 @@
"subs-follow-main",
"test.ngc",
);
const subsFollowMainNgcFiles = [
"test.ngc",
];
if (subsFollowMainNgcFiles.length !== 1 || new Set(subsFollowMainNgcFiles).size !== subsFollowMainNgcFiles.length) {
throw new Error("browser_interp_subs_follow_main_fixture_coverage: list drift");
}
const subsFollowMainStagedNgcFiles = [
subsFollowMainPath,
].map((path) => path.replace("/work/browser-interp/subs-follow-main/", ""));
if (subsFollowMainStagedNgcFiles.join(",") !== subsFollowMainNgcFiles.join(",")) {
throw new Error("browser_interp_subs_follow_main_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_subs_follow_main",
interp.runFile(subsFollowMainPath),
@@ -6438,6 +6450,18 @@
"fractional-linenumbers",
"test.ngc",
);
const fractionalLinenumbersNgcFiles = [
"test.ngc",
];
if (fractionalLinenumbersNgcFiles.length !== 1 || new Set(fractionalLinenumbersNgcFiles).size !== fractionalLinenumbersNgcFiles.length) {
throw new Error("browser_interp_fractional_linenumbers_fixture_coverage: list drift");
}
const fractionalLinenumbersStagedNgcFiles = [
fractionalLinenumbersPath,
].map((path) => path.replace("/work/browser-interp/fractional-linenumbers/", ""));
if (fractionalLinenumbersStagedNgcFiles.join(",") !== fractionalLinenumbersNgcFiles.join(",")) {
throw new Error("browser_interp_fractional_linenumbers_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_fractional_linenumbers",
interp.runFile(fractionalLinenumbersPath),
@@ -6457,6 +6481,18 @@
"crazy-paths",
"test.ngc",
);
const crazyPathsNgcFiles = [
"test.ngc",
];
if (crazyPathsNgcFiles.length !== 1 || new Set(crazyPathsNgcFiles).size !== crazyPathsNgcFiles.length) {
throw new Error("browser_interp_crazy_paths_fixture_coverage: list drift");
}
const crazyPathsStagedNgcFiles = [
crazyPathsPath,
].map((path) => path.replace("/work/browser-interp/crazy-paths/", ""));
if (crazyPathsStagedNgcFiles.join(",") !== crazyPathsNgcFiles.join(",")) {
throw new Error("browser_interp_crazy_paths_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_crazy_paths",
interp.runFile(crazyPathsPath),