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:
Gergo Magyar 2026-06-21 13:15:27 +00:00
parent 717359c74a
commit 1a7aefdcc9

View file

@ -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 });
});
});
});