~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.
()
| 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. */ |
| 31 | function 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. */ |
| 55 | function insertedPrelude(): string { |
no test coverage detected