(t *testing.T)
| 760 | } |
| 761 | |
| 762 | func 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 | |
| 777 | func TestPRView_tty_Comments(t *testing.T) { |
| 778 | tests := map[string]struct { |
nothing calls this directly
no test coverage detected