MCPcopy Create free account
hub / github.com/cli/cli / TestRunList_QueryUnsupported

Function TestRunList_QueryUnsupported

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

Source from the content-addressed store, hash-verified

756}
757
758func TestRunList_QueryUnsupported(t *testing.T) {
759 ios, _, _, _ := iostreams.Test()
760 config := listConfig{
761 opts: listOpts{
762 number: 1,
763 owner: "monalisa",
764 query: "assignee:octocat",
765 },
766 detector: &fd.DisabledDetectorMock{},
767 io: ios,
768 }
769
770 err := runList(config)
771 assert.EqualError(t, err, "the `--query` flag is not supported on this GitHub host")
772}
773
774func TestRunList_FieldColumn(t *testing.T) {
775 defer gock.Off()

Callers

nothing calls this directly

Calls 2

TestFunction · 0.92
runListFunction · 0.70

Tested by

no test coverage detected