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

Function capture

__tests__/telemetry-services.test.ts:191–197  ·  view source on GitHub ↗
(line: unknown)

Source from the content-addressed store, hash-verified

189 } as never;
190 logged = [];
191 const capture = (line: unknown): void => {
192 try {
193 logged.push(JSON.parse(String(line)) as Row);
194 } catch {
195 /* not one of the worker's JSON lines */
196 }
197 };
198 vi.spyOn(console, 'log').mockImplementation(capture);
199 vi.spyOn(console, 'error').mockImplementation(capture);
200 });

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected