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

Function TestMultiLangSupport

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

Source from the content-addressed store, hash-verified

251}
252
253func TestMultiLangSupport(t *testing.T) {
254 input := `
255 query {
256 me(id: test) {
257 name@en, name@en:ru:fr:de
258 }
259 }
260 `
261 l := lex.Lexer{
262 Input: input,
263 }
264 l.Run(lexTopLevel)
265 it := l.NewIterator()
266 for it.Next() {
267 item := it.Item()
268 require.NotEqual(t, item.Typ, lex.ItemError)
269 t.Log(item.String())
270 }
271}
272
273func TestNumberInLang(t *testing.T) {
274 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