Skip to content

Commit b464a20

Browse files
committed
test(cli): the precedent warning loop renders refusedCallables, and isExtractionRefusal is classified
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VoSxBQujKLZKPwK2u5ehQ6
1 parent 5cbd9c5 commit b464a20

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎packages/cli/test/truncation-remainder-notices.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,12 @@ describe('[#11642] no capped render is left silent in the three printers', () =>
374374
expect(window, `${file}:${line + 1} truncates ${m[1]} with no remainder line`).toMatch(NAMES_REMAINDER);
375375
}
376376
}
377-
expect(remaining).toEqual([expect.stringContaining('lowering.bodyExtractionWarnings')]);
377+
// The precedent block renders `refusedCallables`, the refusal rows of
378+
// `lowerCallables`' `bodylessCallables` (each refused handler once). It
379+
// rendered `lowering.bodyExtractionWarnings`, which lists a handler once
380+
// per refusing slot, until its count moved to that population; the
381+
// remainder line and the pointer below are the same bytes.
382+
expect(remaining).toEqual([expect.stringContaining(' refusedCallables')]);
378383
});
379384

380385
it('the precedent is untouched, byte for byte', () => {

‎packages/cli/test/validate-build-gate-parity.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,11 @@ const NOT_A_GATE: Readonly<Record<string, readonly string[]>> = {
342342
'isReportedError',
343343
'cleanupOldRuntimeBundles',
344344
'warningsSoFar',
345+
// A type guard `compile.ts` hands to `.filter` to pick the refusal rows out
346+
// of `lowerCallables`' own `bodylessCallables` (a gate above) for the
347+
// build's warning count. It reads no stack and refuses nothing: every row
348+
// it selects is one `lowerCallables` produced.
349+
'isExtractionRefusal',
345350
],
346351
// [commit 8b4890343] Reads a fact about the TOOLCHAIN, not about the input. The
347352
// ADR-0087 D4 `release` section is computed at publish time from the two

0 commit comments

Comments
 (0)