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