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

Function from

__tests__/php-web-root-includes.test.ts:225–225  ·  view source on GitHub ↗
(file: string, written: string[])

Source from the content-addressed store, hash-verified

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', () => {
228 const pages = Array.from({ length: 50 }, (_, i) => [`p${i}.php`, 'inc/header.php'] as [string, string]);

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected