-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add compilation test for expected kotlin in unit tests (#31)
- Loading branch information
1 parent
efe99f9
commit a7364b3
Showing
43 changed files
with
142 additions
and
118 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
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
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
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
12 changes: 6 additions & 6 deletions
12
test/unit/should_generate_interfaces_with_inheritance/schema.graphql
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
"A description for MyInterface" | ||
interface MyInterface { | ||
"A description for InterfaceWithInheritance" | ||
interface InterfaceWithInheritance { | ||
field: String | ||
field2: String! | ||
} | ||
|
||
"A description for MyInterfaceImplementation" | ||
type MyInterfaceImplementation implements MyInterface { | ||
type MyInterfaceImplementation implements InterfaceWithInheritance { | ||
field: String | ||
field2: String! | ||
} | ||
|
||
interface MyInterface1 { | ||
interface InheritedInterface1 { | ||
field: String | ||
} | ||
|
||
interface MyInterface2 { | ||
interface InheritedInterface2 { | ||
field2: String! | ||
} | ||
|
||
type MyMergedInterfaceImplementation implements MyInterface1 & MyInterface2 { | ||
type MyMergedInterfaceImplementation implements InheritedInterface1 & InheritedInterface2 { | ||
field: String | ||
field2: String! | ||
} |
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
14 changes: 8 additions & 6 deletions
14
test/unit/should_generate_non-nullable_union_list_types_properly/schema.graphql
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
"A description for MyType1" | ||
type MyType1 { | ||
type TypeForNonNullableUnionList1 { | ||
field: String | ||
} | ||
|
||
type MyType2 { | ||
type TypeForNonNullableUnionList2 { | ||
field: String | ||
} | ||
|
||
"A description for MyUnion" | ||
union MyUnion = MyType1 | MyType2 | ||
"A description for UnionForNonNullableList" | ||
union UnionForNonNullableList = | ||
| TypeForNonNullableUnionList1 | ||
| TypeForNonNullableUnionList2 | ||
|
||
type MyNonNullableUnionListType { | ||
field: [MyUnion!]! | ||
field2: [MyUnion]! | ||
field: [UnionForNonNullableList!]! | ||
field2: [UnionForNonNullableList]! | ||
} |
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
16 changes: 9 additions & 7 deletions
16
test/unit/should_generate_union_list_types_properly/schema.graphql
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
"A description for MyType1" | ||
type MyType1 { | ||
"A description for TypeForGeneratingUnionListTypes1" | ||
type TypeForGeneratingUnionListTypes1 { | ||
field: String | ||
} | ||
|
||
type MyType2 { | ||
type TypeForGeneratingUnionListTypes2 { | ||
field: String | ||
} | ||
|
||
"A description for MyUnion" | ||
union MyUnion = MyType1 | MyType2 | ||
"A description for UnionForGeneratingUnionListTypes" | ||
union UnionForGeneratingUnionListTypes = | ||
| TypeForGeneratingUnionListTypes1 | ||
| TypeForGeneratingUnionListTypes2 | ||
|
||
type MyUnionListType { | ||
"A description for field" | ||
field: [MyUnion!] | ||
field2: [MyUnion] | ||
field: [UnionForGeneratingUnionListTypes!] | ||
field2: [UnionForGeneratingUnionListTypes] | ||
} |
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
Oops, something went wrong.