MCPcopy Index your code
hub / github.com/rclone/rclone / TestDoubleTransform

Function TestDoubleTransform

fs/sync/sync_transform_test.go:246–261  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

244}
245
246func TestDoubleTransform(t *testing.T) {
247 ctx := context.Background()
248 r := fstest.NewRun(t)
249 err := transform.SetOptions(ctx, "all,prefix=tac", "all,prefix=tic")
250 require.NoError(t, err)
251 file1 := r.WriteFile("toe/toe", "hello world", t1)
252
253 r.Mkdir(ctx, r.Fremote)
254 ctx = predictDstFromLogger(ctx)
255 err = Sync(ctx, r.Fremote, r.Flocal, true)
256 testLoggerVsLsf(ctx, r.Fremote, r.Flocal, operations.GetLoggerOpt(ctx).JSON, t)
257 require.NoError(t, err)
258
259 r.CheckLocalItems(t, file1)
260 r.CheckRemoteItems(t, fstest.NewItem("tictactoe/tictactoe", "hello world", t1))
261}
262
263func TestFileTag(t *testing.T) {
264 ctx := context.Background()

Callers

nothing calls this directly

Calls 11

WriteFileMethod · 0.95
MkdirMethod · 0.95
CheckLocalItemsMethod · 0.95
CheckRemoteItemsMethod · 0.95
NewRunFunction · 0.92
SetOptionsFunction · 0.92
GetLoggerOptFunction · 0.92
NewItemFunction · 0.92
predictDstFromLoggerFunction · 0.85
SyncFunction · 0.85
testLoggerVsLsfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…