(t *testing.T)
| 360 | } |
| 361 | |
| 362 | func TestRunOpenCmd_UnsupportedWithJSONOutput(t *testing.T) { |
| 363 | io, _, _, _ := iostreams.Test() |
| 364 | |
| 365 | opts, _, _ := newTestOptions(io, test.NewDefaultConfigStub()) |
| 366 | opts.Shortcut = "bogus" |
| 367 | withOutputFormat(opts, "json") |
| 368 | |
| 369 | err := runOpenCmd(opts) |
| 370 | require.Error(t, err) |
| 371 | assert.Contains(t, err.Error(), "unsupported open command, given: bogus") |
| 372 | assert.Contains(t, err.Error(), "Available shortcuts:") |
| 373 | } |
| 374 | |
| 375 | func TestRunOpenCmd_InvalidOutputFormat(t *testing.T) { |
| 376 | io, _, _, _ := iostreams.Test() |
nothing calls this directly
no test coverage detected