MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestPlanUpload_LargeTextFile

Function TestPlanUpload_LargeTextFile

internal/sessions/transfer_test.go:773–785  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

771}
772
773func 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
787func TestPlanUpload_LargeFile_ClaudeCode(t *testing.T) {
788 data := make([]byte, 100000) // 100KB

Callers

nothing calls this directly

Calls 2

PlanUploadFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected