MCPcopy Create free account
hub / github.com/google/go-github / failOnError

Function failOnError

test/integration/authorizations_test.go:106–110  ·  view source on GitHub ↗

failOnError invokes t.Fatal() if err is present.

(t *testing.T, err error)

Source from the content-addressed store, hash-verified

104
105// failOnError invokes t.Fatal() if err is present.
106func 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.
113func failIfNotStatusCode(t *testing.T, resp *github.Response, expectedCode int) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…