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

Function makeSymLinkTestCases

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

Source from the content-addressed store, hash-verified

538}
539
540func 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
559func createTestFilesAndFolders(local string, remote string, outside string, filesToCheck testCaseList, foldersToCheck testCaseList) error {
560 for _, f := range foldersToCheck {

Callers 2

makeBasicTestCasesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected