MCPcopy Index your code
hub / github.com/codehamr/codehamr / TestTruncateSmallUntouched

Function TestTruncateSmallUntouched

internal/ctx/ctx_test.go:56–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestTruncateSmallUntouched(t *testing.T) {
57 in := strings.Repeat("x", 20000) // 5000 tokens, under 6k cap
58 if out := Truncate(in); out != in {
59 t.Fatalf("expected no change for small output")
60 }
61}
62
63func TestTruncateLargeCollapses(t *testing.T) {
64 in := strings.Repeat("abcd", 8000) // 32000 chars ~= 8000 tokens

Callers

nothing calls this directly

Calls 1

TruncateFunction · 0.85

Tested by

no test coverage detected