Now with --check-first
(t *testing.T)
| 247 | |
| 248 | // Now with --check-first |
| 249 | func TestCopyCheckFirst(t *testing.T) { |
| 250 | ctx := context.Background() |
| 251 | ctx, ci := fs.AddConfig(ctx) |
| 252 | r := fstest.NewRun(t) |
| 253 | |
| 254 | ci.CheckFirst = true |
| 255 | |
| 256 | file1 := r.WriteFile("sub dir/hello world", "hello world", t1) |
| 257 | |
| 258 | ctx = predictDstFromLogger(ctx) |
| 259 | err := CopyDir(ctx, r.Fremote, r.Flocal, false) |
| 260 | require.NoError(t, err) |
| 261 | testLoggerVsLsf(ctx, r.Fremote, r.Flocal, operations.GetLoggerOpt(ctx).JSON, t) |
| 262 | |
| 263 | r.CheckLocalItems(t, file1) |
| 264 | r.CheckRemoteItems(t, file1) |
| 265 | } |
| 266 | |
| 267 | // Now with --no-traverse |
| 268 | func TestSyncNoTraverse(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…