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

Function TestNoArgs

pkg/cmd/pr/close/close_test.go:98–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestNoArgs(t *testing.T) {
99 http := &httpmock.Registry{}
100 defer http.Verify(t)
101
102 _, err := runCommand(http, true, "")
103
104 assert.EqualError(t, err, "cannot close pull request: number, url, or branch required")
105}
106
107func TestPrClose(t *testing.T) {
108 http := &httpmock.Registry{}

Callers

nothing calls this directly

Calls 2

VerifyMethod · 0.95
runCommandFunction · 0.70

Tested by

no test coverage detected