(t *testing.T)
| 771 | } |
| 772 | |
| 773 | func TestPlanUpload_LargeTextFile(t *testing.T) { |
| 774 | data := make([]byte, 5000) // 5KB text, exceeds smallFileThreshold |
| 775 | for i := range data { |
| 776 | data[i] = 'A' |
| 777 | } |
| 778 | plan := PlanUpload(data, "claude-code/1.0") |
| 779 | if plan.Strategy != StrategyShellBase64 { |
| 780 | t.Error("large text file should use StrategyShellBase64") |
| 781 | } |
| 782 | if plan.NumChunks != 1 { |
| 783 | t.Errorf("5KB with 20KB chunk should be 1 chunk, got %d", plan.NumChunks) |
| 784 | } |
| 785 | } |
| 786 | |
| 787 | func TestPlanUpload_LargeFile_ClaudeCode(t *testing.T) { |
| 788 | data := make([]byte, 100000) // 100KB |
nothing calls this directly
no test coverage detected