(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestTryCopy_SourceRemote_WithAlias(t *testing.T) { |
| 71 | cfg, _ := setupSCPTestConfig(t) |
| 72 | |
| 73 | ctrl := NewScpController("server1:/remote/file.txt", "/local/dest.txt", cfg) |
| 74 | ctrl.TryCopy("", 1, false, 1*time.Nanosecond) |
| 75 | |
| 76 | // Alias should be resolved to IP |
| 77 | assert.Equal(t, "192.168.1.1", ctrl.destIP) |
| 78 | assert.Equal(t, "192.168.1.1:/remote/file.txt", ctrl.source) |
| 79 | } |
| 80 | |
| 81 | func TestTryCopy_DestRemote_WithAlias(t *testing.T) { |
| 82 | cfg, _ := setupSCPTestConfig(t) |
nothing calls this directly
no test coverage detected