MCPcopy Index your code
hub / github.com/anomalyco/opencode / expectIndexed

Function expectIndexed

packages/opencode/test/cli/run/theme.test.ts:50–54  ·  view source on GitHub ↗
(color: unknown)

Source from the content-addressed store, hash-verified

48}
49
50function expectIndexed(color: unknown) {
51 const rgba = expectRgba(color)
52 expect(rgba.intent).toBe("indexed")
53 expect(rgba.slot).toBeLessThan(256)
54}
55
56function spread(color: RGBA) {
57 const [r, g, b] = color.toInts()

Callers 1

theme.test.tsFile · 0.85

Calls 1

expectRgbaFunction · 0.85

Tested by

no test coverage detected