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

Method getFileReachCounts

src/index.ts:2619–2625  ·  view source on GitHub ↗

* How far each of the given files reaches out: distinct other files their * symbols touch, and how many references that is. The mirror of * getFileDependentCounts; a test file's reach is what it exercises.

(filePaths: string[])

Source from the content-addressed store, hash-verified

2617 * {@link getFileDependentCounts}; a test file's reach is what it exercises.
2618 */
2619 getFileReachCounts(filePaths: string[]): Map<string, { reaches: number; refs: number }> {
2620 return new Map(
2621 this.queries
2622 .getFileReachCounts(filePaths)
2623 .map((row) => [row.filePath, { reaches: row.reaches, refs: row.refs }])
2624 );
2625 }
2626
2627 /** The `file` nodes for the given paths, in one query. */
2628 getFileNodes(filePaths: string[]): Node[] {

Callers

nothing calls this directly

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected