(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestScpController_TryCopy_SourceContainsColon(t *testing.T) { |
| 20 | cfg := newTestMainConfig() |
| 21 | ctrl := NewScpController("server1:/remote/path/file.txt", "/local/path/", cfg) |
| 22 | |
| 23 | // Verify controller fields are set |
| 24 | assert.Equal(t, "server1:/remote/path/file.txt", ctrl.source) |
| 25 | assert.Equal(t, "/local/path/", ctrl.destination) |
| 26 | |
| 27 | // Verify alias resolution |
| 28 | resolved := config.ResolveAlias("server1", cfg) |
| 29 | assert.Equal(t, "192.168.1.1", resolved) |
| 30 | } |
| 31 | |
| 32 | func TestScpController_TryCopy_DestContainsColon(t *testing.T) { |
| 33 | cfg := newTestMainConfig() |
nothing calls this directly
no test coverage detected