(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func TestVariables2(t *testing.T) { |
| 159 | input := ` |
| 160 | query testQuery ($username: String, $id: int, $email: string) { |
| 161 | me(_xid_: rick) { |
| 162 | _city |
| 163 | } |
| 164 | }` |
| 165 | l := lex.Lexer{ |
| 166 | Input: input, |
| 167 | } |
| 168 | l.Run(lexTopLevel) |
| 169 | it := l.NewIterator() |
| 170 | for it.Next() { |
| 171 | item := it.Item() |
| 172 | require.NotEqual(t, item.Typ, lex.ItemError) |
| 173 | t.Log(item.String(), item.Typ) |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | func TestVariablesDefault(t *testing.T) { |
| 178 | input := ` |