Skip to content

Commit 9c9d3e2

Browse files
committed
validate flag groups
1 parent 176d515 commit 9c9d3e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/pkg/testutils/testing.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ func TestParseInput[T any](t *testing.T, cmdFactory func(*params.CmdParams) *cob
4444
t.Fatalf("error validating flags: %v", err)
4545
}
4646

47+
err = cmd.ValidateFlagGroups()
48+
if err != nil {
49+
if !isValid {
50+
return
51+
}
52+
t.Fatalf("error validating flags: %v", err)
53+
}
54+
4755
model, err := parseInputFunc(p, cmd, argValues)
4856
if err != nil {
4957
if !isValid {

0 commit comments

Comments
 (0)