Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/CodebuffAI/codebuff
/ token-count.test.ts
File
token-count.test.ts
web/src/app/api/v1/token-count/__tests__/token-count.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, expect, it } from
'bun:test'
2
3
import
{
4
convertContentToAnthropic,
Callers
nothing calls this directly
Calls
6
convertContentToAnthropic
Function · 0.90
convertToAnthropicMessages
Function · 0.90
convertToResponsesApiInput
Function · 0.90
countTokensViaOpenAI
Function · 0.90
formatToolContent
Function · 0.90
createMockFetch
Function · 0.70
Tested by
no test coverage detected