(t *testing.T)
| 373 | } |
| 374 | |
| 375 | func TestRunOpenCmd_InvalidOutputFormat(t *testing.T) { |
| 376 | io, _, _, _ := iostreams.Test() |
| 377 | |
| 378 | opts, _, _ := newTestOptions(io, test.NewDefaultConfigStub()) |
| 379 | opts.List = true |
| 380 | withOutputFormat(opts, "yaml") |
| 381 | |
| 382 | err := runOpenCmd(opts) |
| 383 | require.Error(t, err) |
| 384 | assert.Contains(t, err.Error(), "unable to match a printer") |
| 385 | } |
nothing calls this directly
no test coverage detected