(includes: Array<[string, string]>, files: string[])
| 221 | |
| 222 | describe('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', () => { |
no test coverage detected