MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / token-usage.test.ts

File token-usage.test.ts

tests/token-usage.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import assert from "node:assert/strict"
2import test from "node:test"
3import type { PluginConfig } from "../lib/config"
4import { isContextOverLimits } from "../lib/messages/inject/utils"

Callers

nothing calls this directly

Calls 9

createSessionStateFunction · 0.90
getCurrentTokenUsageFunction · 0.90
isContextOverLimitsFunction · 0.90
wrapCompressedSummaryFunction · 0.90
createActiveBlockFunction · 0.85
buildCompactedMessagesFunction · 0.70
buildConfigFunction · 0.70
repeatedWordFunction · 0.70

Tested by

no test coverage detected