failOnError invokes t.Fatal() if err is present.
(t *testing.T, err error)
| 104 | |
| 105 | // failOnError invokes t.Fatal() if err is present. |
| 106 | func failOnError(t *testing.T, err error) { |
| 107 | if err != nil { |
| 108 | t.Fatal(err) |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | // failIfNotStatusCode invokes t.Fatal() if the response's status code doesn't match the expected code. |
| 113 | func failIfNotStatusCode(t *testing.T, resp *github.Response, expectedCode int) { |
no outgoing calls
no test coverage detected
searching dependent graphs…