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

Function expectTimedOut

__tests__/parse-deadline.test.ts:68–72  ·  view source on GitHub ↗
(result: ReturnType<typeof extractFromSource>)

Source from the content-addressed store, hash-verified

66}
67
68function expectTimedOut(result: ReturnType<typeof extractFromSource>): void {
69 expect(result.nodes).toEqual([]);
70 expect(result.errors.map((e) => e.message)).toEqual([`Parse timed out after ${BUDGET_MS}ms`]);
71 expect(result.errors[0]!.code).toBe('parse_error');
72}
73
74describe('an indexing parse runs within its budget (#3274)', () => {
75 it('cancels the wasm parse that never ends, and the next parse starts afresh', () => {

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected