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

Function graphqlHelper

systest/cloud/cloud_test.go:53–62  ·  view source on GitHub ↗
(t *testing.T, query string, headers http.Header,
	expectedResult string)

Source from the content-addressed store, hash-verified

51}
52
53func graphqlHelper(t *testing.T, query string, headers http.Header,
54 expectedResult string) {
55 params := &common.GraphQLParams{
56 Query: query,
57 Headers: headers,
58 }
59 queryResult := params.ExecuteAsPost(t, common.GraphqlURL)
60 common.RequireNoGQLErrors(t, queryResult)
61 testutil.CompareJSON(t, expectedResult, string(queryResult.Data))
62}
63
64func TestDisallowNonGalaxy(t *testing.T) {
65 setup(t)

Callers 1

TestDisallowNonGalaxyFunction · 0.85

Calls 3

ExecuteAsPostMethod · 0.95
RequireNoGQLErrorsFunction · 0.92
CompareJSONFunction · 0.92

Tested by

no test coverage detected