gitlab.com/evatix-go/core@v1.3.55/tests/integratedtests/chmodhelpertests/LinuxApplyRecursiveOnPath_test.go (about) 1 package chmodhelpertests 2 3 import ( 4 "testing" 5 6 "github.com/smartystreets/goconvey/convey" 7 "gitlab.com/evatix-go/core/chmodhelper" 8 "gitlab.com/evatix-go/core/coretests" 9 "gitlab.com/evatix-go/core/tests/testwrappers/chmodhelpertestwrappers" 10 ) 11 12 func Test_LinuxApplyRecursiveOnPath_Unix(t *testing.T) { 13 coretests.SkipOnWindows(t) 14 15 for _, testCase := range chmodhelpertestwrappers.RwxInstructionsUnixApplyRecursivelyTestCases { 16 // Arrange 17 caseMessenger := testCase.AsTestCaseMessenger() 18 testHeader := coretests.GetTestHeader( 19 caseMessenger) 20 chmodhelper.CreateDirFilesWithRwxPermissionsMust( 21 true, 22 &testCase.CreatePaths) 23 24 // Act 25 actualErr := linuxApplyRecursivePathInstructions(&testCase) 26 testCase.SetActual(actualErr) 27 28 // Assert 29 convey.Convey(testHeader, t, func() { 30 convey.So(actualErr, convey.ShouldBeNil) 31 }) 32 33 assertTestCaseChmodAsExpected( 34 t, 35 &testCase, 36 testHeader) 37 } 38 }