(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestRecursiveTouchDirWithFiles(t *testing.T) { |
| 140 | r := fstest.NewRun(t) |
| 141 | |
| 142 | err := r.Fremote.Mkdir(context.Background(), "a/b/c") |
| 143 | require.NoError(t, err) |
| 144 | file1 := r.WriteObject(context.Background(), "a/f1", "111", t1) |
| 145 | file2 := r.WriteObject(context.Background(), "a/b/f2", "222", t1) |
| 146 | file3 := r.WriteObject(context.Background(), "a/b/c/f3", "333", t1) |
| 147 | recursive = true |
| 148 | err = Touch(context.Background(), r.Fremote, "a") |
| 149 | recursive = false |
| 150 | require.NoError(t, err) |
| 151 | fstest.CheckListingWithPrecision(t, r.Fremote, []fstest.Item{file1, file2, file3}, []string{"a", "a/b", "a/b/c"}, fs.ModTimeNotSupported) |
| 152 | } |
| 153 | |
| 154 | func TestTouchWithMetadata(t *testing.T) { |
| 155 | r := fstest.NewRun(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…