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

Function TestIRIRef

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

Source from the content-addressed store, hash-verified

212}
213
214func TestIRIRef(t *testing.T) {
215 input := `
216 query testQuery {
217 me(id : <http://helloworld.com/how/are/you>) {
218 <http://verygood.com/what/about/you>
219 }
220 }`
221 l := lex.Lexer{
222 Input: input,
223 }
224 l.Run(lexTopLevel)
225 it := l.NewIterator()
226 for it.Next() {
227 item := it.Item()
228 require.NotEqual(t, item.Typ, lex.ItemError)
229 t.Log(item.String())
230 }
231}
232
233func TestLangSupport(t *testing.T) {
234 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