MCPcopy Create free account
hub / github.com/Oslonline/dithering-studio / createSnapshotKey

Function createSnapshotKey

src/test/algorithmTestUtils.ts:191–197  ·  view source on GitHub ↗
(
  algorithmName: string,
  imageSize: { width: number; height: number },
  paletteName: string
)

Source from the content-addressed store, hash-verified

189 * Creates a snapshot key for algorithm output
190 */
191export function createSnapshotKey(
192 algorithmName: string,
193 imageSize: { width: number; height: number },
194 paletteName: string
195): string {
196 return `${algorithmName}_${imageSize.width}x${imageSize.height}_${paletteName}`;
197}
198
199/**
200 * Converts ImageData to a comparable array for snapshots

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected