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

Function TestPlanUpload_SmallTextFile

internal/sessions/transfer_test.go:748–757  ·  view source on GitHub ↗

=================================================================== E. Transfer Planning Tests ===================================================================

(t *testing.T)

Source from the content-addressed store, hash-verified

746// ===================================================================
747
748func TestPlanUpload_SmallTextFile(t *testing.T) {
749 data := []byte("Hello, world!") // 13 bytes, text
750 plan := PlanUpload(data, "claude-code/1.0")
751 if plan.Strategy != StrategyDirectTool {
752 t.Error("small text file should use StrategyDirectTool")
753 }
754 if plan.IsBinary {
755 t.Error("should not be binary")
756 }
757}
758
759func TestPlanUpload_SmallBinaryFile(t *testing.T) {
760 data := []byte{0x89, 0x50, 0x4e, 0x47, 0x00, 0x01, 0x02} // 7 bytes, binary

Callers

nothing calls this directly

Calls 2

PlanUploadFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected