gitlab.com/evatix-go/core@v1.3.55/tests/testwrappers/chmodhelpertestwrappers/RwxCompileValueTestCases.go (about)

     1  package chmodhelpertestwrappers
     2  
     3  import "gitlab.com/evatix-go/core/chmodhelper/chmodins"
     4  
     5  var RwxCompileValueTestCases = []RwxCompileValueTestWrapper{
     6  	{
     7  		Existing: DefaultRwx,
     8  		Input: chmodins.RwxOwnerGroupOther{
     9  			Owner: "*-x",
    10  			Group: "**x",
    11  			Other: "-w-",
    12  		},
    13  		Expected: DefaultExpected,
    14  	},
    15  	{
    16  		Existing: chmodins.RwxOwnerGroupOther{
    17  			Owner: "rwx",
    18  			Group: "r--",
    19  			Other: "--x",
    20  		},
    21  		Input: chmodins.RwxOwnerGroupOther{
    22  			Owner: "***",
    23  			Group: "**x",
    24  			Other: "-w*",
    25  		},
    26  		Expected: chmodins.RwxOwnerGroupOther{
    27  			Owner: "rwx",
    28  			Group: "r-x",
    29  			Other: "-wx",
    30  		},
    31  	},
    32  }