MCPcopy
hub / github.com/rclone/rclone / TestTouchWithTimestamp

Function TestTouchWithTimestamp

cmd/touch/touch_test.go:49–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestTouchWithTimestamp(t *testing.T) {
50 r := fstest.NewRun(t)
51
52 timeAsArgument = "060102"
53 srcFileName := "oldFile"
54 err := Touch(context.Background(), r.Fremote, srcFileName)
55 require.NoError(t, err)
56 checkFile(t, r.Fremote, srcFileName, "")
57}
58
59func TestTouchWithLongerTimestamp(t *testing.T) {
60 r := fstest.NewRun(t)

Callers

nothing calls this directly

Calls 3

NewRunFunction · 0.92
TouchFunction · 0.85
checkFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…