Skip to content

Commit

Permalink
fix(compiler): fix test number collision
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Nov 28, 2023
1 parent dce5a55 commit 48e296a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Schema {
path: "built_in.graphql",
source_text: include_str!("built_in.graphql"),
},
38: SourceFile {
path: "0039_field_merging_issue_755.graphql",
39: SourceFile {
path: "0040_field_merging_issue_755.graphql",
source_text: "# Different fragments selecting the same name from different types\n# into different subselections -- all valid, unless apollo-rs\n# propagates type conditions incorrectly :)\n\ntype Subselection {\n createdAt: Int!\n}\n\ntype Issue {\n createdAt: Int\n subselection: [Subselection!]\n}\n\ntype Query {\n issue755: Issue\n}\n\nfragment topLevelFragment on Issue {\n subselection {\n createdAt\n ...subselectionFragment\n }\n ...collidingTopLevelFragment\n}\nfragment collidingTopLevelFragment on Issue {\n subselection {\n createdAt\n }\n}\nfragment subselectionFragment on Subselection {\n createdAt\n}\nquery {\n issue755 {\n ...topLevelFragment\n }\n}\n",
},
},
Expand Down Expand Up @@ -42,15 +42,15 @@ Schema {
"Boolean": built_in_type!("Boolean"),
"ID": built_in_type!("ID"),
"Subselection": Object(
174..213 @38 ObjectType {
174..213 @39 ObjectType {
description: None,
name: "Subselection",
implements_interfaces: {},
directives: [],
fields: {
"createdAt": Component {
origin: Definition,
node: 196..211 @38 FieldDefinition {
node: 196..211 @39 FieldDefinition {
description: None,
name: "createdAt",
arguments: [],
Expand All @@ -64,15 +64,15 @@ Schema {
},
),
"Issue": Object(
215..278 @38 ObjectType {
215..278 @39 ObjectType {
description: None,
name: "Issue",
implements_interfaces: {},
directives: [],
fields: {
"createdAt": Component {
origin: Definition,
node: 230..244 @38 FieldDefinition {
node: 230..244 @39 FieldDefinition {
description: None,
name: "createdAt",
arguments: [],
Expand All @@ -84,7 +84,7 @@ Schema {
},
"subselection": Component {
origin: Definition,
node: 247..276 @38 FieldDefinition {
node: 247..276 @39 FieldDefinition {
description: None,
name: "subselection",
arguments: [],
Expand All @@ -100,15 +100,15 @@ Schema {
},
),
"Query": Object(
280..312 @38 ObjectType {
280..312 @39 ObjectType {
description: None,
name: "Query",
implements_interfaces: {},
directives: [],
fields: {
"issue755": Component {
origin: Definition,
node: 295..310 @38 FieldDefinition {
node: 295..310 @39 FieldDefinition {
description: None,
name: "issue755",
arguments: [],
Expand All @@ -129,13 +129,13 @@ ExecutableDocument {
path: "built_in.graphql",
source_text: include_str!("built_in.graphql"),
},
38: SourceFile {
path: "0039_field_merging_issue_755.graphql",
39: SourceFile {
path: "0040_field_merging_issue_755.graphql",
source_text: "# Different fragments selecting the same name from different types\n# into different subselections -- all valid, unless apollo-rs\n# propagates type conditions incorrectly :)\n\ntype Subselection {\n createdAt: Int!\n}\n\ntype Issue {\n createdAt: Int\n subselection: [Subselection!]\n}\n\ntype Query {\n issue755: Issue\n}\n\nfragment topLevelFragment on Issue {\n subselection {\n createdAt\n ...subselectionFragment\n }\n ...collidingTopLevelFragment\n}\nfragment collidingTopLevelFragment on Issue {\n subselection {\n createdAt\n }\n}\nfragment subselectionFragment on Subselection {\n createdAt\n}\nquery {\n issue755 {\n ...topLevelFragment\n }\n}\n",
},
},
anonymous_operation: Some(
592..643 @38 Operation {
592..643 @39 Operation {
operation_type: Query,
name: None,
variables: [],
Expand All @@ -144,8 +144,8 @@ ExecutableDocument {
ty: "Query",
selections: [
Field(
603..641 @38 Field {
definition: 295..310 @38 FieldDefinition {
603..641 @39 Field {
definition: 295..310 @39 FieldDefinition {
description: None,
name: "issue755",
arguments: [],
Expand All @@ -162,7 +162,7 @@ ExecutableDocument {
ty: "Issue",
selections: [
FragmentSpread(
618..637 @38 FragmentSpread {
618..637 @39 FragmentSpread {
fragment_name: "topLevelFragment",
directives: [],
},
Expand All @@ -177,15 +177,15 @@ ExecutableDocument {
),
named_operations: {},
fragments: {
"topLevelFragment": 314..446 @38 Fragment {
"topLevelFragment": 314..446 @39 Fragment {
name: "topLevelFragment",
directives: [],
selection_set: SelectionSet {
ty: "Issue",
selections: [
Field(
353..413 @38 Field {
definition: 247..276 @38 FieldDefinition {
353..413 @39 Field {
definition: 247..276 @39 FieldDefinition {
description: None,
name: "subselection",
arguments: [],
Expand All @@ -204,8 +204,8 @@ ExecutableDocument {
ty: "Subselection",
selections: [
Field(
372..381 @38 Field {
definition: 196..211 @38 FieldDefinition {
372..381 @39 Field {
definition: 196..211 @39 FieldDefinition {
description: None,
name: "createdAt",
arguments: [],
Expand All @@ -225,7 +225,7 @@ ExecutableDocument {
},
),
FragmentSpread(
386..409 @38 FragmentSpread {
386..409 @39 FragmentSpread {
fragment_name: "subselectionFragment",
directives: [],
},
Expand All @@ -235,23 +235,23 @@ ExecutableDocument {
},
),
FragmentSpread(
416..444 @38 FragmentSpread {
416..444 @39 FragmentSpread {
fragment_name: "collidingTopLevelFragment",
directives: [],
},
),
],
},
},
"collidingTopLevelFragment": 447..529 @38 Fragment {
"collidingTopLevelFragment": 447..529 @39 Fragment {
name: "collidingTopLevelFragment",
directives: [],
selection_set: SelectionSet {
ty: "Issue",
selections: [
Field(
495..527 @38 Field {
definition: 247..276 @38 FieldDefinition {
495..527 @39 Field {
definition: 247..276 @39 FieldDefinition {
description: None,
name: "subselection",
arguments: [],
Expand All @@ -270,8 +270,8 @@ ExecutableDocument {
ty: "Subselection",
selections: [
Field(
514..523 @38 Field {
definition: 196..211 @38 FieldDefinition {
514..523 @39 Field {
definition: 196..211 @39 FieldDefinition {
description: None,
name: "createdAt",
arguments: [],
Expand All @@ -297,15 +297,15 @@ ExecutableDocument {
],
},
},
"subselectionFragment": 530..591 @38 Fragment {
"subselectionFragment": 530..591 @39 Fragment {
name: "subselectionFragment",
directives: [],
selection_set: SelectionSet {
ty: "Subselection",
selections: [
Field(
580..589 @38 Field {
definition: 196..211 @38 FieldDefinition {
580..589 @39 Field {
definition: 196..211 @39 FieldDefinition {
description: None,
name: "createdAt",
arguments: [],
Expand Down

0 comments on commit 48e296a

Please sign in to comment.