(t *testing.T)
| 394 | } |
| 395 | |
| 396 | func TestMove(t *testing.T) { |
| 397 | ctx := context.Background() |
| 398 | r := fstest.NewRun(t) |
| 399 | err := transform.SetOptions(ctx, "all,prefix=tac", "all,prefix=tic") |
| 400 | require.NoError(t, err) |
| 401 | r.WriteFile("toe/toe/toe.txt", "hello world", t1) |
| 402 | _, err = operations.MkdirModTime(ctx, r.Flocal, "empty_dir", t1) |
| 403 | require.NoError(t, err) |
| 404 | |
| 405 | r.Mkdir(ctx, r.Fremote) |
| 406 | ctx = predictDstFromLogger(ctx) |
| 407 | err = MoveDir(ctx, r.Fremote, r.Flocal, true, true) |
| 408 | testLoggerVsLsf(ctx, r.Fremote, r.Flocal, operations.GetLoggerOpt(ctx).JSON, t) |
| 409 | require.NoError(t, err) |
| 410 | |
| 411 | r.CheckLocalListing(t, []fstest.Item{}, []string{}) |
| 412 | r.CheckRemoteListing(t, []fstest.Item{fstest.NewItem("tictactoe/tictactoe/tictactoe.txt", "hello world", t1)}, []string{"tictacempty_dir", "tictactoe", "tictactoe/tictactoe"}) |
| 413 | } |
| 414 | |
| 415 | func TestTransformFile(t *testing.T) { |
| 416 | ctx := context.Background() |
nothing calls this directly
no test coverage detected
searching dependent graphs…