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

Function TestPRView_web_noResultsForBranch

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

Source from the content-addressed store, hash-verified

760}
761
762func TestPRView_web_noResultsForBranch(t *testing.T) {
763 http := &httpmock.Registry{}
764 defer http.Verify(t)
765
766 shared.StubFinderForRunCommandStyleTests(t, "", nil, nil)
767
768 _, cmdTeardown := run.Stub()
769 defer cmdTeardown(t)
770
771 _, err := runCommand(http, "blueberries", true, "-w")
772 if err == nil || err.Error() != `no pull requests found` {
773 t.Errorf("error running command `pr view`: %v", err)
774 }
775}
776
777func TestPRView_tty_Comments(t *testing.T) {
778 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