(t *testing.T)
| 182 | } |
| 183 | |
| 184 | func TestCopyMissingDirectory(t *testing.T) { |
| 185 | ctx := context.Background() |
| 186 | r := fstest.NewRun(t) |
| 187 | r.Mkdir(ctx, r.Fremote) |
| 188 | |
| 189 | nonExistingFs, err := fs.NewFs(ctx, "/non-existing") |
| 190 | if err != nil { |
| 191 | t.Fatal(err) |
| 192 | } |
| 193 | |
| 194 | ctx = predictDstFromLogger(ctx) |
| 195 | err = CopyDir(ctx, r.Fremote, nonExistingFs, false) |
| 196 | require.Error(t, err) |
| 197 | testLoggerVsLsf(ctx, r.Fremote, r.Flocal, operations.GetLoggerOpt(ctx).JSON, t) |
| 198 | } |
| 199 | |
| 200 | // Now with --no-traverse |
| 201 | func TestCopyNoTraverse(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…