(t *testing.T)
| 194 | } |
| 195 | |
| 196 | func 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 | |
| 214 | func TestIRIRef(t *testing.T) { |
| 215 | input := ` |