MCPcopy
hub / github.com/cli/cli / TestRunList_QueryUnsupported

Function TestRunList_QueryUnsupported

pkg/cmd/project/item-list/item_list_test.go:722–736  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

720}
721
722func TestRunList_QueryUnsupported(t *testing.T) {
723 ios, _, _, _ := iostreams.Test()
724 config := listConfig{
725 opts: listOpts{
726 number: 1,
727 owner: "monalisa",
728 query: "assignee:octocat",
729 },
730 detector: &fd.DisabledDetectorMock{},
731 io: ios,
732 }
733
734 err := runList(config)
735 assert.EqualError(t, err, "the `--query` flag is not supported on this GitHub host")
736}

Callers

nothing calls this directly

Calls 2

TestFunction · 0.92
runListFunction · 0.70

Tested by

no test coverage detected