(t *testing.T)
| 329 | } |
| 330 | |
| 331 | func TestIssueView_web_notFound(t *testing.T) { |
| 332 | http := &httpmock.Registry{} |
| 333 | defer http.Verify(t) |
| 334 | |
| 335 | http.Register( |
| 336 | httpmock.GraphQL(`query IssueByNumber\b`), |
| 337 | httpmock.StringResponse(` |
| 338 | { "errors": [ |
| 339 | { "message": "Could not resolve to an Issue with the number of 9999." } |
| 340 | ] } |
| 341 | `), |
| 342 | ) |
| 343 | |
| 344 | _, cmdTeardown := run.Stub() |
| 345 | defer cmdTeardown(t) |
| 346 | |
| 347 | _, err := runCommand(http, true, "-w 9999") |
| 348 | if err == nil || err.Error() != "GraphQL: Could not resolve to an Issue with the number of 9999." { |
| 349 | t.Errorf("error running command `issue view`: %v", err) |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | func TestIssueView_disabledIssues(t *testing.T) { |
| 354 | http := &httpmock.Registry{} |
nothing calls this directly
no test coverage detected