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

Function TestSchemaValidationError

dgraph/cmd/alpha/run_test.go:843–849  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

841`
842
843func TestSchemaValidationError(t *testing.T) {
844 _, err := dql.Parse(dql.Request{Str: m5})
845 require.Error(t, err)
846 output, err := runGraphqlQuery(strings.Replace(q5, "<id>", "0x8", -1))
847 require.NoError(t, err)
848 require.JSONEq(t, `{"data": {"user": []}}`, output)
849}
850
851func TestMutationError(t *testing.T) {
852 var qErr = `

Callers

nothing calls this directly

Calls 3

ParseFunction · 0.92
runGraphqlQueryFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected