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

Function page

__tests__/php-web-root-includes.test.ts:151–151  ·  view source on GitHub ↗
(count: number, ...more: string[])

Source from the content-addressed store, hash-verified

149const includesOf = (count: number): string =>
150 Array.from({ length: count }, (_, i) => `require_once $_SERVER['DOCUMENT_ROOT'] . '/lib/f${i + 1}.php';`).join('\n');
151const page = (count: number, ...more: string[]) => ['<?php', includesOf(count), ...more, ''].join('\n');
152
153describe("the web root the project's includes show, with no webRoot (#3298)", () => {
154 it('finds a site served from the project root, for pages in subfolders too', async () => {

Callers 1

Calls 2

includesOfFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected