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

Function infer

__tests__/php-web-root-includes.test.ts:223–224  ·  view source on GitHub ↗
(includes: Array<[string, string]>, files: string[])

Source from the content-addressed store, hash-verified

221
222describe('inferPhpWebRoots', () => {
223 const infer = (includes: Array<[string, string]>, files: string[]) =>
224 Object.fromEntries(inferPhpWebRoots(includes.map(([filePath, written]) => ({ filePath, written })), (p) => files.includes(p)));
225 const from = (file: string, written: string[]) => written.map((w) => [file, w] as [string, string]);
226
227 it('counts different paths, not include sites', () => {

Callers 1

Calls 2

inferPhpWebRootsFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected