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

Function extract

__tests__/parse-deadline.test.ts:62–66  ·  view source on GitHub ↗

extractFromSource, timed.

(file: string, source: string)

Source from the content-addressed store, hash-verified

60
61/** extractFromSource, timed. */
62function extract(file: string, source: string): { result: ReturnType<typeof extractFromSource>; ms: number } {
63 const t0 = Date.now();
64 const result = extractFromSource(file, source, 'tsx');
65 return { result, ms: Date.now() - t0 };
66}
67
68function expectTimedOut(result: ReturnType<typeof extractFromSource>): void {
69 expect(result.nodes).toEqual([]);

Callers 1

Calls 1

extractFromSourceFunction · 0.90

Tested by

no test coverage detected