MCPcopy Create free account
hub / github.com/Noumena-Network/code / fillRawStyles

Function fillRawStyles

src/ink/screen.test.ts:27–31  ·  view source on GitHub ↗
(pool: StylePool, rawStyleCount: number)

Source from the content-addressed store, hash-verified

25}
26
27function fillRawStyles(pool: StylePool, rawStyleCount: number): void {
28 for (let i = 1; i < rawStyleCount; i += 1) {
29 pool.intern([style(i)])
30 }
31}
32
33describe('StylePool packed-cell overflow', () => {
34 it('round-trips the maximum safe packed style id', () => {

Callers 1

screen.test.tsFile · 0.85

Calls 2

styleFunction · 0.85
internMethod · 0.45

Tested by

no test coverage detected