gitlab.com/evatix-go/core@v1.3.55/tests/integratedtests/chmodhelpertests/assertChmodAsExpected.go (about)

     1  package chmodhelpertests
     2  
     3  import (
     4  	"testing"
     5  
     6  	"gitlab.com/evatix-go/core/tests/testwrappers/chmodhelpertestwrappers"
     7  )
     8  
     9  func assertTestCaseChmodAsExpected(
    10  	t *testing.T,
    11  	testCase *chmodhelpertestwrappers.RwxInstructionTestWrapper,
    12  	testHeader string,
    13  ) {
    14  	expected := testCase.ExpectedAsRwxOwnerGroupOtherInstruction()
    15  	expectedChmod := expected.String()
    16  
    17  	for _, createPath := range testCase.CreatePaths {
    18  		assertSingleChmod(
    19  			t,
    20  			testHeader,
    21  			createPath,
    22  			expectedChmod)
    23  	}
    24  }