gitlab.com/evatix-go/core@v1.3.55/tests/testwrappers/chmodhelpertestwrappers/PartialRwxVerifyTestCases.go (about) 1 package chmodhelpertestwrappers 2 3 type PartialRwxVerify struct { 4 Header string 5 PartialRwxInput1, FullRwxVerifyInput2 string 6 IsMatchesExpectation bool 7 } 8 9 var PartialRwxVerifyTestCases = []PartialRwxVerify{ 10 { 11 Header: "Same input returns true.", 12 PartialRwxInput1: "-rwx-*-r*x", 13 FullRwxVerifyInput2: "-rwx-*-r*x", 14 IsMatchesExpectation: true, 15 }, 16 { 17 Header: "Same [-rwx---r*x] comparing " + 18 "with [-rwx-*-r*x] returns false.", 19 PartialRwxInput1: "-rwx---r*x", 20 FullRwxVerifyInput2: "-rwx-*-r*x", 21 IsMatchesExpectation: false, 22 }, 23 { 24 Header: "Same [-rwx-*-r*x] comparing with " + 25 "[-rwx-w-r*x] returns true.", 26 PartialRwxInput1: "-rwx-*-r*x", 27 FullRwxVerifyInput2: "-rwx-w-r*x", 28 IsMatchesExpectation: true, 29 }, 30 { 31 Header: "Same [-rwx-*-] or [-rwx-*-***] (not givens ones are wildcard) " + 32 "comparing with [-rwx-w--*x] returns true.", 33 PartialRwxInput1: "-rwx-*-", 34 FullRwxVerifyInput2: "-rwx-w--*x", 35 IsMatchesExpectation: true, 36 }, 37 { 38 Header: "Same [-rwxr*-] or [-rwxr*-***] (not givens ones are wildcard) " + 39 "comparing with [-rwx-w--*x] returns false.", 40 PartialRwxInput1: "-rwxr*-", 41 FullRwxVerifyInput2: "-rwx-w--*x", 42 IsMatchesExpectation: false, 43 }, 44 }