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

Function TestPRView_web_noResultsForBranch

pkg/cmd/pr/view/view_test.go:658–671  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

656}
657
658func TestPRView_web_noResultsForBranch(t *testing.T) {
659 http := &httpmock.Registry{}
660 defer http.Verify(t)
661
662 shared.StubFinderForRunCommandStyleTests(t, "", nil, nil)
663
664 _, cmdTeardown := run.Stub()
665 defer cmdTeardown(t)
666
667 _, err := runCommand(http, "blueberries", true, "-w")
668 if err == nil || err.Error() != `no pull requests found` {
669 t.Errorf("error running command `pr view`: %v", err)
670 }
671}
672
673func TestPRView_tty_Comments(t *testing.T) {
674 tests := map[string]struct {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected