(n: number)
| 708 | // other whole-file gate). That matters: a file that renders whole ignores the |
| 709 | // per-file budget entirely, and this fixture is about a budget being spent. |
| 710 | const matchedPaint = (n: number) => ` |
| 711 | public paintSceneLayer${n}(canvas: string, scene: string, element: string): string { |
| 712 | const appState = this.appState.get('layer${n}') ?? scene; |
| 713 | const painted = canvas + '|' + appState + '|' + element; |
| 714 | const stamped = painted + '|layer-${n}'; |
| 715 | const merged = stamped + '|' + scene + '|' + element; |
| 716 | const settled = merged.split('|').filter((part) => part.length > 0).join('|'); |
| 717 | this.appState.set('layer${n}', settled); |
| 718 | if (settled.length === 0) { |
| 719 | return this.paint(scene, scene); |
| 720 | } |
| 721 | return this.paint(settled, scene); |
| 722 | } |
| 723 | `; |
| 724 | |
| 725 | let project: Project; |
| 726 | let run: Awaited<ReturnType<typeof explore>>; |
no outgoing calls
no test coverage detected