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

Function TestPRList_withInvalidLimitFlag

pkg/cmd/pr/list/list_test.go:285–290  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

283}
284
285func TestPRList_withInvalidLimitFlag(t *testing.T) {
286 http := initFakeHTTP()
287 defer http.Verify(t)
288 _, err := runCommand(http, nil, true, `--limit=0`)
289 assert.EqualError(t, err, "invalid value for --limit: 0")
290}
291
292func TestPRList_web(t *testing.T) {
293 tests := []struct {

Callers

nothing calls this directly

Calls 3

initFakeHTTPFunction · 0.70
runCommandFunction · 0.70
VerifyMethod · 0.65

Tested by

no test coverage detected