Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
faizan-siddiqui authored Oct 23, 2024
1 parent 4944350 commit 23cadf7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions flag_groups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ func TestValidateFlagGroups(t *testing.T) {
flagGroupsExclusive: []string{"a d", "a b", "a c"},
args: []string{"--a=foo", "--b=foo", "--c=foo"},
expectErr: `if any flags in the group [a b] are set none of the others can be; [a b] were all set`,
}, {
desc: "Validation of if present then others required groups occurs on groups in sorted order",
flagGroupsIfPresentThenRequired: []string{"a d", "a b", "a c"},
args: []string{"--a=foo"},
expectErr: `if the first flag in the group [a b] is set, all other flags must be set; the following flags are not set: [b]`,
}, {
desc: "Persistent flags utilize required and exclusive groups and can fail required groups",
flagGroupsRequired: []string{"a e", "e f"},
Expand Down

0 comments on commit 23cadf7

Please sign in to comment.