(t *testing.T)
| 656 | } |
| 657 | |
| 658 | func 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 | |
| 673 | func TestPRView_tty_Comments(t *testing.T) { |
| 674 | tests := map[string]struct { |
nothing calls this directly
no test coverage detected