mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-11 03:38:07 +00:00
test(lbug): assert deleteAllInterprocTaintPaths + deleteAllCallSummaries route through withConnLock (#2264)
The lock-routing suite covered 4 singleton-conn helpers but not these two withConnLock-wrapped delete helpers (lbug-adapter.ts), which also run during the incremental --pdg writeback window — so a revert of either wrapper would have gone uncaught. Add the two routing assertions to complete the coverage the file's header claims (every singleton-conn helper reachable during the WAL-driver window). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JBJomjoTdBV2eveDVq4JMm
This commit is contained in:
parent
717359c74a
commit
1a7aefdcc9
1 changed files with 14 additions and 0 deletions
|
|
@ -92,6 +92,20 @@ withTestLbugDB('conn-serialization', () => {
|
|||
expect(cached.embeddings).toEqual([]);
|
||||
expect(cached.embeddingNodeIds.size).toBe(0);
|
||||
});
|
||||
|
||||
it('U4: deleteAllInterprocTaintPaths routes through withConnLock', async () => {
|
||||
const { deleteAllInterprocTaintPaths } = await import('../../src/core/lbug/lbug-adapter.js');
|
||||
const result = await deleteAllInterprocTaintPaths();
|
||||
expect(lockSpy).toHaveBeenCalled();
|
||||
expect(result).toMatchObject({ edgesDeleted: 0 });
|
||||
});
|
||||
|
||||
it('U4: deleteAllCallSummaries routes through withConnLock', async () => {
|
||||
const { deleteAllCallSummaries } = await import('../../src/core/lbug/lbug-adapter.js');
|
||||
const result = await deleteAllCallSummaries();
|
||||
expect(lockSpy).toHaveBeenCalled();
|
||||
expect(result).toMatchObject({ edgesDeleted: 0 });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue