(t *testing.T)
| 73 | } |
| 74 | |
| 75 | func TestParseQueryNamedQuery(t *testing.T) { |
| 76 | query := ` |
| 77 | query works() { |
| 78 | q(func: has(name)) { |
| 79 | name |
| 80 | } |
| 81 | } |
| 82 | ` |
| 83 | _, err := Parse(Request{Str: query}) |
| 84 | require.NoError(t, err) |
| 85 | } |
| 86 | |
| 87 | func TestParseQueryNameQueryWithoutBrackers(t *testing.T) { |
| 88 | query := ` |