@@ -363,6 +363,7 @@ func makeBasicTestCases() (testCaseList, testCaseList) {
363363
364364 filesToCheck = makeSymLinkTestCases(filesToCheck)
365365 foldersToCheck = makeSymLinkTestCases(foldersToCheck)
366+ foldersToCheck = makeSymLinkTestCasesWithContent(foldersToCheck)
366367
367368 //Add Files and Folders that are inside a shared testFolder
368369 filesToCheck = makeDeepTestCases(filesToCheck)
@@ -556,6 +557,33 @@ func makeSymLinkTestCases(testCases testCaseList) testCaseList {
556557 return testCases
557558}
558559
560+ func makeSymLinkTestCasesWithContent(testCases testCaseList) testCaseList {
561+ for _, f := range testCases {
562+ if f.isSymLink || strings.Contains(f.path, "Remote") || f.path == "testFolder" {
563+ continue
564+ }
565+
566+ deepEquivalent := checkedFileOrFolder{
567+ path: strings.ReplaceAll(f.path, "Folder", "SymLinkToFolderWithContents"),
568+ shouldExistInLocal: f.shouldExistInLocal,
569+ shouldExistInRemote: f.shouldExistInRemote,
570+ editLocation: f.editLocation,
571+ isSymLink: true,
572+ }
573+ testCases = append(testCases, deepEquivalent)
574+
575+ testCases = append(testCases, checkedFileOrFolder{
576+ path: filepath.Join(deepEquivalent.path, "content"),
577+ shouldExistInLocal: f.shouldExistInLocal,
578+ shouldExistInRemote: f.shouldExistInRemote,
579+ editLocation: f.editLocation,
580+ isSymLink: false,
581+ })
582+ }
583+
584+ return testCases
585+ }
586+
559587func createTestFilesAndFolders(local string, remote string, outside string, filesToCheck testCaseList, foldersToCheck testCaseList) error {
560588 for _, f := range foldersToCheck {
561589 createLocation := f.editLocation
0 commit comments