(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func 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 | |
| 63 | func TestTruncateLargeCollapses(t *testing.T) { |
| 64 | in := strings.Repeat("abcd", 8000) // 32000 chars ~= 8000 tokens |
nothing calls this directly
no test coverage detected