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

Function TestLangSupport

dql/state_test.go:233–251  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

231}
232
233func TestLangSupport(t *testing.T) {
234 input := `
235 query {
236 me(id: test) {
237 name@en
238 }
239 }
240 `
241 l := lex.Lexer{
242 Input: input,
243 }
244 l.Run(lexTopLevel)
245 it := l.NewIterator()
246 for it.Next() {
247 item := it.Item()
248 require.NotEqual(t, item.Typ, lex.ItemError)
249 t.Log(item.String())
250 }
251}
252
253func TestMultiLangSupport(t *testing.T) {
254 input := `

Callers

nothing calls this directly

Calls 6

RunMethod · 0.95
NewIteratorMethod · 0.95
ItemMethod · 0.80
LogMethod · 0.80
NextMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected