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

Function TestParseQueryNameQueryWithoutBrackers

dql/parser_test.go:87–97  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

85}
86
87func TestParseQueryNameQueryWithoutBrackers(t *testing.T) {
88 query := `
89query works {
90 q(func: has(name)) {
91 name
92 }
93}
94`
95 _, err := Parse(Request{Str: query})
96 require.NoError(t, err)
97}
98
99func TestParseVarError(t *testing.T) {
100 query := `

Callers

nothing calls this directly

Calls 1

ParseFunction · 0.70

Tested by

no test coverage detected