(t *testing.T)
| 651 | } |
| 652 | |
| 653 | func 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 | |
| 668 | func TestPRView_tty_Comments(t *testing.T) { |
| 669 | tests := map[string]struct { |
nothing calls this directly
no test coverage detected