We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5027733 commit 8c76573Copy full SHA for 8c76573
1 file changed
cmd/os-image-composer/inspect_cmd_test.go
@@ -83,6 +83,19 @@ func TestCreateInspectCommand(t *testing.T) {
83
}
84
})
85
86
+ t.Run("CommandFlags", func(t *testing.T) {
87
+ formatFlag := cmd.Flags().Lookup("pretty")
88
+ if formatFlag == nil {
89
+ t.Fatal("--pretty flag should be registered")
90
+ }
91
+ if formatFlag.DefValue != "false" {
92
+ t.Errorf("--pretty default should be 'false', got %q", formatFlag.DefValue)
93
94
+ if formatFlag.Usage == "" {
95
+ t.Error("--pretty should have usage text")
96
97
+ })
98
+
99
t.Run("ArgsValidation", func(t *testing.T) {
100
if cmd.Args == nil {
101
t.Fatal("Args validator should be set")
0 commit comments