MCPcopy
hub / github.com/dgraph-io/dgraph / RequireNoGQLErrors

Function RequireNoGQLErrors

graphql/e2e/common/common.go:1230–1237  ·  view source on GitHub ↗
(t *testing.T, resp *GraphQLResponse)

Source from the content-addressed store, hash-verified

1228}
1229
1230func 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
1239func (gqlRes *GraphQLResponse) RequireNoGQLErrors(t *testing.T) {
1240 RequireNoGQLErrors(t, gqlRes)

Callers 15

graphqlHelperFunction · 0.92
TestCustomGetQueryFunction · 0.92
TestCustomPostQueryFunction · 0.92
addPersonFunction · 0.92
addTeachersFunction · 0.92
addSchoolsFunction · 0.92
addUsersWithSchoolsFunction · 0.92
addUsersFunction · 0.92
verifyDataFunction · 0.92

Calls 1

ErrorMethod · 0.45

Tested by 15

graphqlHelperFunction · 0.74
TestCustomGetQueryFunction · 0.74
TestCustomPostQueryFunction · 0.74
addPersonFunction · 0.74
addTeachersFunction · 0.74
addSchoolsFunction · 0.74
addUsersWithSchoolsFunction · 0.74
addUsersFunction · 0.74
verifyDataFunction · 0.74