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

Function getMeasureTextCacheStatsForTesting

src/ink/measure-text.ts:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58export function getMeasureTextCacheStatsForTesting(): {
59 entries: number
60 bytes: number
61} {
62 return {
63 entries: measureCacheSize,
64 bytes: measureCacheBytes,
65 }
66}
67
68// Single-pass measurement: computes both width and height in one
69// iteration instead of two (widestLine + countVisualLines).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected