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

Function TestIRIRefInIdentifyMutationOrQuery

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

Source from the content-addressed store, hash-verified

194}
195
196func TestIRIRefInIdentifyMutationOrQuery(t *testing.T) {
197 input := `{
198 <user-query>(func: uid(0x1)) {
199 name
200 }
201 }`
202 l := lex.Lexer{
203 Input: input,
204 }
205 l.Run(lexTopLevel)
206 it := l.NewIterator()
207 for it.Next() {
208 item := it.Item()
209 require.NotEqual(t, item.Typ, lex.ItemError, "Error: %v", item.String())
210 t.Log(item.String())
211 }
212}
213
214func TestIRIRef(t *testing.T) {
215 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