(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func TestValidateOutputFormatRejectsUnsupportedJSONCommand(t *testing.T) { |
| 150 | cmd := &cobra.Command{} |
| 151 | cmd.Flags().String(outputFlag, "json", "") |
| 152 | |
| 153 | err := validateOutputFormat(cmd) |
| 154 | if !errors.Is(err, output.ErrStructuredOutputUnsupported) { |
| 155 | t.Fatalf("error = %v, want ErrStructuredOutputUnsupported", err) |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | func TestValidateOutputFormatAllowsSupportedJSONCommand(t *testing.T) { |
| 160 | cmd := &cobra.Command{} |
nothing calls this directly
no test coverage detected