MCPcopy Index your code
hub / github.com/devspace-sh/devspace / makeRemoteTestCases

Function makeRemoteTestCases

pkg/devspace/sync/sync_test.go:502–520  ·  view source on GitHub ↗
(testCases testCaseList)

Source from the content-addressed store, hash-verified

500}
501
502func 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
522func makeDeepTestCases(testCases testCaseList) testCaseList {
523 for _, f := range testCases {

Callers 1

makeBasicTestCasesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected