(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestScpController_TryCopy_AliasInSource(t *testing.T) { |
| 51 | cfg := newTestMainConfig() |
| 52 | ctrl := NewScpController("server2:/remote/file.txt", "/local/dest.txt", cfg) |
| 53 | |
| 54 | // Verify controller created correctly |
| 55 | assert.Equal(t, "server2:/remote/file.txt", ctrl.source) |
| 56 | |
| 57 | // Verify alias resolution for source |
| 58 | resolved := config.ResolveAlias("server2", cfg) |
| 59 | assert.Equal(t, "192.168.1.2", resolved) |
| 60 | } |
| 61 | |
| 62 | func TestScpController_TryCopy_AliasInDest(t *testing.T) { |
| 63 | cfg := newTestMainConfig() |
nothing calls this directly
no test coverage detected