(testCases testCaseList)
| 538 | } |
| 539 | |
| 540 | func makeSymLinkTestCases(testCases testCaseList) testCaseList { |
| 541 | for _, f := range testCases { |
| 542 | if f.isSymLink || strings.Contains(f.path, "Remote") || f.path == "testFolder" { |
| 543 | continue |
| 544 | } |
| 545 | |
| 546 | deepEquivalent := checkedFileOrFolder{ |
| 547 | path: strings.ReplaceAll(strings.ReplaceAll(f.path, "File", "SymLinkToFile"), "Folder", "SymLinkToFolder"), |
| 548 | shouldExistInLocal: f.shouldExistInLocal, |
| 549 | shouldExistInRemote: f.shouldExistInRemote, |
| 550 | editLocation: f.editLocation, |
| 551 | isSymLink: true, |
| 552 | } |
| 553 | testCases = append(testCases, deepEquivalent) |
| 554 | } |
| 555 | |
| 556 | return testCases |
| 557 | } |
| 558 | |
| 559 | func createTestFilesAndFolders(local string, remote string, outside string, filesToCheck testCaseList, foldersToCheck testCaseList) error { |
| 560 | for _, f := range foldersToCheck { |
no outgoing calls
no test coverage detected