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

Function TestPRView_web_noResultsForBranch

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

Source from the content-addressed store, hash-verified

651}
652
653func TestPRView_web_noResultsForBranch(t *testing.T) {
654 http := &httpmock.Registry{}
655 defer http.Verify(t)
656
657 shared.StubFinderForRunCommandStyleTests(t, "", nil, nil)
658
659 _, cmdTeardown := run.Stub()
660 defer cmdTeardown(t)
661
662 _, err := runCommand(http, "blueberries", true, "-w")
663 if err == nil || err.Error() != `no pull requests found` {
664 t.Errorf("error running command `pr view`: %v", err)
665 }
666}
667
668func TestPRView_tty_Comments(t *testing.T) {
669 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