MCPcopy Create free account
hub / github.com/cucoleadan/opencode-cowork-proxy / cache.test.ts

File cache.test.ts

test/cache.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect } from 'vitest';
2import { hashSystemPrompt, hasCacheControl, extractCachedTokens, extractInputTokens, extractOutputTokens, extractUncachedInputTokens } from '../src/cache';
3
4describe('hashSystemPrompt', () => {

Callers

nothing calls this directly

Calls 6

hashSystemPromptFunction · 0.90
hasCacheControlFunction · 0.90
extractCachedTokensFunction · 0.90
extractInputTokensFunction · 0.90
extractOutputTokensFunction · 0.90

Tested by

no test coverage detected