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

Function matchedPaint

__tests__/explore-allocation-e2e.test.ts:717–730  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected