(t *testing.T)
| 157 | } |
| 158 | |
| 159 | func TestValidateOutputFormatAllowsSupportedJSONCommand(t *testing.T) { |
| 160 | cmd := &cobra.Command{} |
| 161 | cmd.Flags().String(outputFlag, "json", "") |
| 162 | enableStructuredOutput(cmd) |
| 163 | |
| 164 | if err := validateOutputFormat(cmd); err != nil { |
| 165 | t.Fatalf("validateOutputFormat returned error: %v", err) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | func TestValidateOutputFormatHonorsInheritedOutput(t *testing.T) { |
| 170 | root := &cobra.Command{} |
nothing calls this directly
no test coverage detected