File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,25 @@ func TestNode(t *testing.T) {
185185 end : token.Token {Kind : token .Text , Start : 22 , End : 30 },
186186 kind : ast .KindFile ,
187187 },
188+ {
189+ name : "request" ,
190+ node : ast.Request {
191+ URL : ast.TextLiteral {
192+ Value : "https://example.com" ,
193+ Token : token.Token {Kind : token .URL , Start : 9 , End : 28 },
194+ Type : ast .KindTextLiteral ,
195+ },
196+ Method : ast.Method {
197+ Token : token.Token {Kind : token .MethodGet , Start : 5 , End : 8 },
198+ Type : ast .KindMethod ,
199+ },
200+ Sep : token.Token {Kind : token .Separator , Start : 0 , End : 3 },
201+ Type : ast .KindRequest ,
202+ },
203+ start : token.Token {Kind : token .Separator , Start : 0 , End : 3 },
204+ end : token.Token {Kind : token .URL , Start : 9 , End : 28 },
205+ kind : ast .KindRequest ,
206+ },
188207 {
189208 name : "empty file" ,
190209 node : ast.File {Type : ast .KindFile },
You can’t perform that action at this time.
0 commit comments