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

Function resetMeasureTextCacheForTesting

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

Source from the content-addressed store, hash-verified

50}
51
52export function resetMeasureTextCacheForTesting(): void {
53 measureCache.clear()
54 measureCacheSize = 0
55 measureCacheBytes = 0
56}
57
58export function getMeasureTextCacheStatsForTesting(): {
59 entries: number

Callers 1

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected