(t *testing.T, resp *GraphQLResponse)
| 1228 | } |
| 1229 | |
| 1230 | func RequireNoGQLErrors(t *testing.T, resp *GraphQLResponse) { |
| 1231 | require.NotNil(t, resp) |
| 1232 | if resp.Errors != nil { |
| 1233 | t.Logf("required no GraphQL errors, but received: %s\n", resp.Errors.Error()) |
| 1234 | debug.PrintStack() |
| 1235 | t.FailNow() |
| 1236 | } |
| 1237 | } |
| 1238 | |
| 1239 | func (gqlRes *GraphQLResponse) RequireNoGQLErrors(t *testing.T) { |
| 1240 | RequireNoGQLErrors(t, gqlRes) |