(t *testing.T)
| 374 | } |
| 375 | |
| 376 | func TestTeamCommandsSupportStructuredOutput(t *testing.T) { |
| 377 | for _, cmd := range []*cobra.Command{ |
| 378 | infoCmd, |
| 379 | listMembersCmd, |
| 380 | listGroupsCmd, |
| 381 | addMemberCmd, |
| 382 | removeMemberCmd, |
| 383 | } { |
| 384 | if !commandSupportsStructuredOutput(cmd) { |
| 385 | t.Fatalf("%s should support structured output", cmd.CommandPath()) |
| 386 | } |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | func teamTestCmd(t *testing.T, jsonOutput bool) (*cobra.Command, *bytes.Buffer) { |
| 391 | t.Helper() |
nothing calls this directly
no test coverage detected