(testCases testCaseList)
| 500 | } |
| 501 | |
| 502 | func makeRemoteTestCases(testCases testCaseList) testCaseList { |
| 503 | for _, f := range testCases { |
| 504 | if strings.Contains(f.path, "Upload") { |
| 505 | f.path = strings.ReplaceAll(f.path, "Upload", "Download") |
| 506 | } else { |
| 507 | f.path = strings.ReplaceAll(f.path, "Download", "Upload") |
| 508 | } |
| 509 | |
| 510 | remoteEquivalent := checkedFileOrFolder{ |
| 511 | path: strings.ReplaceAll(f.path, "Local", "Remote"), |
| 512 | shouldExistInLocal: f.shouldExistInRemote, |
| 513 | shouldExistInRemote: f.shouldExistInLocal, |
| 514 | editLocation: editInRemote, |
| 515 | } |
| 516 | testCases = append(testCases, remoteEquivalent) |
| 517 | } |
| 518 | |
| 519 | return testCases |
| 520 | } |
| 521 | |
| 522 | func makeDeepTestCases(testCases testCaseList) testCaseList { |
| 523 | for _, f := range testCases { |
no outgoing calls
no test coverage detected