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

Function bigFileContent

__tests__/mcp-stale-slice.test.ts:31–52  ·  view source on GitHub ↗

~1,100-line file: handler0…handler79 plus `orchestrate` at the bottom — * mirrors the issue's fixture. Big enough that explore takes the clustered * render and codegraph_node's whole-file stale fallback does NOT fit.

()

Source from the content-addressed store, hash-verified

29 * mirrors the issue's fixture. Big enough that explore takes the clustered
30 * render and codegraph_node's whole-file stale fallback does NOT fit. */
31function bigFileContent(): string {
32 const parts: string[] = [];
33 for (let h = 0; h < 80; h++) {
34 parts.push(`/** handler number ${h} */`);
35 parts.push(`export function handler${h}(input: string): string {`);
36 for (let s = 0; s < 8; s++) {
37 parts.push(` const v${s} = input + "-step${s}-h${h}";`);
38 }
39 parts.push(` return v7;`);
40 parts.push(`}`);
41 parts.push('');
42 }
43 parts.push(`export function orchestrate(input: string): string {`);
44 parts.push(` handler0(input);`);
45 parts.push(` handler1(input);`);
46 parts.push(` handler2(input);`);
47 parts.push(` handler3(input);`);
48 parts.push(` return input;`);
49 parts.push(`}`);
50 parts.push('');
51 return parts.join('\n');
52}
53
54/** 45 lines of new helpers inserted at the top — shifts every symbol down. */
55function insertedPrelude(): string {

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected