-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
df6905f
commit eacadd5
Showing
48 changed files
with
90 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,4 +61,4 @@ | |
- [email protected] "String" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 4 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,4 +128,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 6 | ||
recursion limit: 4096, high: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,4 +214,4 @@ | |
- [email protected] | ||
- [email protected] | ||
- [email protected] "FIELD_DEFINITION" | ||
recursion limit: 4096, high: 6 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,4 +143,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -477,4 +477,4 @@ | |
- [email protected] "}" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 31 | ||
recursion limit: 4096, high: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,4 +231,4 @@ | |
- [email protected] "Int" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 5 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,4 +186,4 @@ | |
- [email protected] "!" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 4 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -300,4 +300,4 @@ | |
- [email protected] "Boolean" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 4 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,4 +110,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,4 +147,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,4 +238,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -541,4 +541,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,4 +281,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,4 +88,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 4 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,4 +113,4 @@ | |
- [email protected] "}" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 10 | ||
recursion limit: 4096, high: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ | |
- [email protected] "__typename" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,4 +152,4 @@ | |
- [email protected] "}" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 4 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,4 +214,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 4 | ||
recursion limit: 4096, high: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -495,7 +495,7 @@ mod tests { | |
let parser = Parser::new(source).recursion_limit(3).token_limit(200); | ||
let ast = parser.parse(); | ||
let errors = ast.errors().collect::<Vec<_>>(); | ||
assert_eq!(errors, &[&Error::limit("parser limit(3) reached", 61),]); | ||
assert_eq!(errors, &[&Error::limit("parser limit(3) reached", 121),]); | ||
} | ||
|
||
#[test] | ||
|
@@ -522,8 +522,6 @@ mod tests { | |
); | ||
assert_eq!(errors.next(), None); | ||
|
||
// TODO(@goto-bus-stop) the comment is positioned wrong: | ||
// https://github.com/apollographql/apollo-rs/issues/362 | ||
let tree = expect![[r##" | ||
[email protected] | ||
[email protected] "\n " | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- ERROR@9:11 "Fragment Name cannot be 'on'" on | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- ERROR@22:26 "exptected 'on'" User | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- ERROR@0:14 "expected definition" uasdf21230jkdw | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- ERROR@99:113 "expected definition" uasdf21230jkdw | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
- [email protected] "}" | ||
- ERROR@13:25 "unexpected escaped character" "\string ID" | ||
- ERROR@25:26 "expected a valid Value" ) | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ | |
- [email protected] "}" | ||
- ERROR@0:1 "expected a StringValue, Name or OperationDefinition" @ | ||
- ERROR@49:50 "expected a StringValue, Name or OperationDefinition" } | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
- [email protected] "}" | ||
- [email protected] "\n" | ||
- ERROR@10:13 "expected an Inline Fragment or a Fragment Spread" ... | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 4096, high: 2 |
Oops, something went wrong.