(t *testing.T)
| 135 | } |
| 136 | |
| 137 | func TestTryCopy_CacheNotFound(t *testing.T) { |
| 138 | cfg, _ := setupSCPTestConfig(t) |
| 139 | |
| 140 | ctrl := NewScpController("10.0.0.99:/remote/file.txt", "/local/dest.txt", cfg) |
| 141 | ctrl.TryCopy("", 1, false, 1*time.Nanosecond) |
| 142 | |
| 143 | assert.Equal(t, "10.0.0.99", ctrl.destIP) |
| 144 | assert.False(t, ctrl.cacheIsFound) |
| 145 | } |
| 146 | |
| 147 | func TestTryCopy_WithUserFilter(t *testing.T) { |
| 148 | cfg, _ := setupSCPTestConfig(t) |
nothing calls this directly
no test coverage detected