MCPcopy Create free account
hub / github.com/algolia/cli / TestRunOpenCmd_InvalidOutputFormat

Function TestRunOpenCmd_InvalidOutputFormat

pkg/cmd/open/open_test.go:375–385  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

373}
374
375func 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}

Callers

nothing calls this directly

Calls 6

TestFunction · 0.92
NewDefaultConfigStubFunction · 0.92
newTestOptionsFunction · 0.85
withOutputFormatFunction · 0.85
runOpenCmdFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected