| 372 | } |
| 373 | |
| 374 | func disableDownload(testCases testCaseList) testCaseList { |
| 375 | for i, f := range testCases { |
| 376 | if !strings.Contains(f.path, "Remote") || strings.Contains(f.path, "noUpload") { |
| 377 | continue |
| 378 | } |
| 379 | testCases[i].shouldExistInLocal = false |
| 380 | testCases[i].shouldExistInRemote = strings.Contains(f.path, "ignore") || strings.Contains(f.path, "noDownload") |
| 381 | } |
| 382 | return testCases |
| 383 | } |
| 384 | |
| 385 | func makeRemoveAndRenameTestCases(filesToCheck testCaseList, foldersToCheck testCaseList) (testCaseList, testCaseList) { |
| 386 | for n, array := range []testCaseList{filesToCheck, foldersToCheck} { |