Check that if the local file doesn't exist when we copy it up, nothing happens to the remote file
(t *testing.T)
| 732 | // Check that if the local file doesn't exist when we copy it up, |
| 733 | // nothing happens to the remote file |
| 734 | func TestCopyAfterDelete(t *testing.T) { |
| 735 | ctx := context.Background() |
| 736 | r := fstest.NewRun(t) |
| 737 | file1 := r.WriteObject(ctx, "sub dir/hello world", "hello world", t1) |
| 738 | r.CheckLocalItems(t) |
| 739 | r.CheckRemoteItems(t, file1) |
| 740 | |
| 741 | err := operations.Mkdir(ctx, r.Flocal, "") |
| 742 | require.NoError(t, err) |
| 743 | |
| 744 | ctx = predictDstFromLogger(ctx) |
| 745 | err = CopyDir(ctx, r.Fremote, r.Flocal, false) |
| 746 | require.NoError(t, err) |
| 747 | testLoggerVsLsf(ctx, r.Fremote, r.Flocal, operations.GetLoggerOpt(ctx).JSON, t) |
| 748 | |
| 749 | r.CheckLocalItems(t) |
| 750 | r.CheckRemoteItems(t, file1) |
| 751 | } |
| 752 | |
| 753 | // Check the copy downloading a file |
| 754 | func TestCopyRedownload(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…