mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-29 06:32:28 +00:00
test: update hardcoded schema-version expectations for v11 (#2604)
call-summary-schema-version.test.ts pins INCREMENTAL_SCHEMA_VERSION as a literal per bump, documenting the reuse-gate boundary for each version. Update the "current" expectation to 11 and add the v10 pre-current case, matching the v7/v8/v9/v10 precedent already in the file.
This commit is contained in:
parent
1fd9cf5ae2
commit
d5a0b2b941
1 changed files with 7 additions and 3 deletions
|
|
@ -73,8 +73,8 @@ describe('CALL_SUMMARY relation-type exclusion (U-C1)', () => {
|
|||
});
|
||||
|
||||
describe('CALL_SUMMARY incremental reuse gate (U-C5)', () => {
|
||||
it('INCREMENTAL_SCHEMA_VERSION is bumped to 10 (Java record container-node re-index window)', () => {
|
||||
expect(INCREMENTAL_SCHEMA_VERSION).toBe(10);
|
||||
it('INCREMENTAL_SCHEMA_VERSION is bumped to 11 (Rust dyn-trait-object dispatch re-index window, #2604)', () => {
|
||||
expect(INCREMENTAL_SCHEMA_VERSION).toBe(11);
|
||||
});
|
||||
|
||||
it('a pre-current stamp fails the `=== INCREMENTAL_SCHEMA_VERSION` reuse gate → forces full re-analyze', () => {
|
||||
|
|
@ -112,7 +112,11 @@ describe('CALL_SUMMARY incremental reuse gate (U-C5)', () => {
|
|||
// (#2564) — a record's methods would keep being ownerless Method nodes
|
||||
// with no HAS_METHOD edge on unchanged files → must NOT reuse.
|
||||
expect(passesReuseGate(9)).toBe(false);
|
||||
// A pre-v11 (v10) index predates the Rust dyn-trait-object dispatch fix
|
||||
// (#2604) — abstract trait methods would keep being uncaptured (no
|
||||
// ownerId/CALLS resolution) on unchanged Rust trait files → must NOT reuse.
|
||||
expect(passesReuseGate(10)).toBe(false);
|
||||
// A current-version stamp passes the gate (incremental top-up eligible).
|
||||
expect(passesReuseGate(10)).toBe(true);
|
||||
expect(passesReuseGate(11)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue