MCPcopy Index your code
hub / github.com/cli/cli / TestIssueList_withInvalidLimitFlag

Function TestIssueList_withInvalidLimitFlag

pkg/cmd/issue/list/list_test.go:212–221  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

210}
211
212func TestIssueList_withInvalidLimitFlag(t *testing.T) {
213 http := &httpmock.Registry{}
214 defer http.Verify(t)
215
216 _, err := runCommand(http, true, "--limit=0")
217
218 if err == nil || err.Error() != "invalid limit: 0" {
219 t.Errorf("error running command `issue list`: %v", err)
220 }
221}
222
223func TestIssueList_disabledIssues(t *testing.T) {
224 http := &httpmock.Registry{}

Callers

nothing calls this directly

Calls 4

VerifyMethod · 0.95
runCommandFunction · 0.70
ErrorfMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected