Skip to content

Commit a822528

Browse files
authored
Compiler: add a test for types named Object (#5156)
* add a test for Object Fixes #1173 * add comment
1 parent 6026cd2 commit a822528

23 files changed

+756
-3
lines changed

libraries/apollo-compiler/src/test/graphql/com/example/measurements

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// If you updated the codegen and test fixtures, you should commit this file too.
33

44
Test: Total LOC:
5-
aggregate-all 191665
6-
aggregate-kotlin-responseBased 60538
5+
aggregate-all 192403
6+
aggregate-kotlin-responseBased 60846
77
aggregate-kotlin-operationBased 40535
88
aggregate-kotlin-compat 0
9-
aggregate-java-operationBased 90592
9+
aggregate-java-operationBased 91022
1010

1111
java-operationBased-fragments_with_defer_and_include_directives 5552
1212
kotlin-operationBased-fragments_with_defer_and_include_directives 3471
@@ -214,6 +214,7 @@ kotlin-responseBased-enum_field
214214
kotlin-responseBased-inline_fragment_type_coercion 436
215215
java-operationBased-companion 435
216216
kotlin-responseBased-optional 435
217+
java-operationBased-object 430
217218
kotlin-responseBased-recursive_selection 427
218219
kotlin-responseBased-inline_fragment_simple 419
219220
kotlin-operationBased-inline_fragment_for_non_optional_field 412
@@ -234,6 +235,7 @@ kotlin-responseBased-big_query
234235
kotlin-responseBased-case_sensitive_enum 322
235236
kotlin-responseBased-nonnull 316
236237
kotlin-operationBased-companion 309
238+
kotlin-responseBased-object 308
237239
kotlin-responseBased-java_hashcode 248
238240
kotlin-responseBased-__schema 128
239241
java-operationBased-__schema 103
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://github.com/apollographql/apollo-kotlin/issues/1173
2+
query TestQuery {
3+
object {
4+
random
5+
}
6+
}

libraries/apollo-compiler/src/test/graphql/com/example/object/java/operationBased/object/TestQuery.java.expected

Lines changed: 222 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/apollo-compiler/src/test/graphql/com/example/object/java/operationBased/object/adapter/TestQuery_ResponseAdapter.java.expected

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/apollo-compiler/src/test/graphql/com/example/object/java/operationBased/object/selections/TestQuerySelections.java.expected

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/apollo-compiler/src/test/graphql/com/example/object/java/operationBased/object/type/GraphQLBoolean.java.expected

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)