MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / failingFlowEdges

Function failingFlowEdges

__tests__/parameter-flow.test.ts:493–499  ·  view source on GitHub ↗

Throws when the pass writes its first edge, as a full disk would.

()

Source from the content-addressed store, hash-verified

491
492 /** Throws when the pass writes its first edge, as a full disk would. */
493 function failingFlowEdges(): void {
494 const insert = QueryBuilder.prototype.insertEdges;
495 vi.spyOn(QueryBuilder.prototype, 'insertEdges').mockImplementation(function (this: QueryBuilder, edges) {
496 if (edges.some((edge) => edge.metadata?.parameterFlow !== undefined)) throw new Error('stopped');
497 return insert.call(this, edges);
498 });
499 }
500
501 it('leaves the old edge in place, and the next sync finishes the job', async () => {
502 failingFlowEdges();

Callers 1

Calls 1

callMethod · 0.80

Tested by

no test coverage detected