=================================================================== E. Transfer Planning Tests ===================================================================
(t *testing.T)
| 746 | // =================================================================== |
| 747 | |
| 748 | func 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 | |
| 759 | func TestPlanUpload_SmallBinaryFile(t *testing.T) { |
| 760 | data := []byte{0x89, 0x50, 0x4e, 0x47, 0x00, 0x01, 0x02} // 7 bytes, binary |
nothing calls this directly
no test coverage detected