Skip to content

Commit b1f633c

Browse files
committed
chore: Migrate tests after updates
1 parent 3145441 commit b1f633c

File tree

17 files changed

+29
-30
lines changed

17 files changed

+29
-30
lines changed

clients/graphql-kotlin-client-serialization/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tasks {
1919
counter = "INSTRUCTION"
2020
value = "COVEREDRATIO"
2121
// increase it when https://github.com/Kotlin/kotlinx.serialization/issues/961 is resolved
22-
minimum = "0.70".toBigDecimal()
22+
minimum = "0.79".toBigDecimal()
2323
}
2424
}
2525
}

clients/graphql-kotlin-client-serialization/src/test/kotlin/com/expediagroup/graphql/client/serialization/GraphQLClientKotlinXSerializerTest.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import com.expediagroup.graphql.client.serialization.types.KotlinxGraphQLError
3131
import com.expediagroup.graphql.client.serialization.types.KotlinxGraphQLResponse
3232
import com.expediagroup.graphql.client.serialization.types.KotlinxGraphQLSourceLocation
3333
import com.expediagroup.graphql.client.serialization.types.OptionalInput
34-
import kotlinx.serialization.decodeFromString
3534
import kotlinx.serialization.json.Json
3635
import kotlinx.serialization.json.JsonObject
3736
import org.junit.jupiter.api.Test
@@ -309,8 +308,7 @@ class GraphQLClientKotlinXSerializerTest {
309308
| "foo",
310309
| null
311310
| ],
312-
| "nonNullableElementList": [
313-
| ]
311+
| "nonNullableElementList": []
314312
| },
315313
| "query": "INPUT_QUERY",
316314
| "operationName": "InputQuery"
@@ -327,8 +325,7 @@ class GraphQLClientKotlinXSerializerTest {
327325
)
328326

329327
val expected = """{
330-
| "variables": {
331-
| },
328+
| "variables": {},
332329
| "query": "EMPTY_INPUT_QUERY",
333330
| "operationName": "EmptyInputQuery"
334331
|}

clients/graphql-kotlin-ktor-client/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tasks {
2323
limit {
2424
counter = "INSTRUCTION"
2525
value = "COVEREDRATIO"
26-
minimum = "0.95".toBigDecimal()
26+
minimum = "0.97".toBigDecimal()
2727
}
2828
}
2929
}

clients/graphql-kotlin-spring-client/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tasks {
2323
limit {
2424
counter = "INSTRUCTION"
2525
value = "COVEREDRATIO"
26-
minimum = "0.95".toBigDecimal()
26+
minimum = "0.96".toBigDecimal()
2727
}
2828
}
2929
}

executions/graphql-kotlin-automatic-persisted-queries/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ tasks {
1515
limit {
1616
counter = "INSTRUCTION"
1717
value = "COVEREDRATIO"
18-
minimum = "0.76".toBigDecimal()
18+
minimum = "0.95".toBigDecimal()
1919
}
2020
limit {
2121
counter = "BRANCH"
2222
value = "COVEREDRATIO"
23-
minimum = "0.50".toBigDecimal()
23+
minimum = "0.90".toBigDecimal()
2424
}
2525
}
2626
}

executions/graphql-kotlin-dataloader-instrumentation/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ tasks {
2020
limit {
2121
counter = "INSTRUCTION"
2222
value = "COVEREDRATIO"
23-
minimum = "0.92".toBigDecimal()
23+
minimum = "0.94".toBigDecimal()
2424
}
2525
limit {
2626
counter = "BRANCH"
2727
value = "COVEREDRATIO"
28-
minimum = "0.70".toBigDecimal()
28+
minimum = "0.76".toBigDecimal()
2929
}
3030
}
3131
}

executions/graphql-kotlin-dataloader/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tasks {
1818
limit {
1919
counter = "INSTRUCTION"
2020
value = "COVEREDRATIO"
21-
minimum = "0.52".toBigDecimal()
21+
minimum = "0.58".toBigDecimal()
2222
}
2323
limit {
2424
counter = "BRANCH"

generator/graphql-kotlin-federation/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tasks {
2727
limit {
2828
counter = "BRANCH"
2929
value = "COVEREDRATIO"
30-
minimum = "0.80".toBigDecimal()
30+
minimum = "0.83".toBigDecimal()
3131
}
3232
}
3333
}

generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/execution/ServiceQueryResolverTest.kt

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ schema {
4747
query: Query
4848
}
4949
50+
directive @custom on SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
51+
5052
interface Product @extends @key(fields : "id") @key(fields : "upc") {
5153
id: String! @external
5254
reviews: [Review!]!
@@ -70,8 +72,8 @@ type Book implements Product @extends @key(fields : "id") @key(fields : "upc") {
7072
type Query @extends
7173
7274
type Review {
73-
body: String!
74-
content: String
75+
body: String! @custom
76+
content: String @deprecated(reason : "no longer supported, replace with use Review.body instead")
7577
customScalar: CustomScalar!
7678
id: String!
7779
}
@@ -173,7 +175,7 @@ type Query {
173175
174176
type Review {
175177
body: String! @custom
176-
content: String
178+
content: String @deprecated(reason : "no longer supported, replace with use Review.body instead")
177179
customScalar: CustomScalar!
178180
id: String!
179181
}

generator/graphql-kotlin-schema-generator/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tasks {
2020
limit {
2121
counter = "INSTRUCTION"
2222
value = "COVEREDRATIO"
23-
minimum = "0.95".toBigDecimal()
23+
minimum = "0.96".toBigDecimal()
2424
}
2525
limit {
2626
counter = "BRANCH"

integration/gradle-plugin-integration-tests/client-generator/jacoco/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tasks {
3030
limit {
3131
counter = "INSTRUCTION"
3232
value = "COVEREDRATIO"
33-
minimum = "0.99".toBigDecimal()
33+
minimum = "1.0".toBigDecimal()
3434
}
3535
}
3636
}

plugins/client/graphql-kotlin-client-generator/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ tasks {
3838
limit {
3939
counter = "INSTRUCTION"
4040
value = "COVEREDRATIO"
41-
minimum = "0.90".toBigDecimal()
41+
minimum = "0.94".toBigDecimal()
4242
}
4343
limit {
4444
counter = "BRANCH"
4545
value = "COVEREDRATIO"
46-
minimum = "0.75".toBigDecimal()
46+
minimum = "0.85".toBigDecimal()
4747
}
4848
}
4949
}

plugins/schema/graphql-kotlin-sdl-generator/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ tasks {
6161
limit {
6262
counter = "INSTRUCTION"
6363
value = "COVEREDRATIO"
64-
minimum = "0.85".toBigDecimal()
64+
minimum = "0.91".toBigDecimal()
6565
}
6666
limit {
6767
counter = "BRANCH"
6868
value = "COVEREDRATIO"
69-
minimum = "0.80".toBigDecimal()
69+
minimum = "0.83".toBigDecimal()
7070
}
7171
}
7272
}

plugins/server/graphql-kotlin-graalvm-metadata-generator/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ tasks {
6060
limit {
6161
counter = "INSTRUCTION"
6262
value = "COVEREDRATIO"
63-
minimum = "0.80".toBigDecimal()
63+
minimum = "0.89".toBigDecimal()
6464
}
6565
limit {
6666
counter = "BRANCH"
6767
value = "COVEREDRATIO"
68-
minimum = "0.58".toBigDecimal()
68+
minimum = "0.66".toBigDecimal()
6969
}
7070
}
7171
}

servers/graphql-kotlin-ktor-server/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ tasks {
2626
limit {
2727
counter = "INSTRUCTION"
2828
value = "COVEREDRATIO"
29-
minimum = "0.70".toBigDecimal()
29+
minimum = "0.75".toBigDecimal()
3030
}
3131
limit {
3232
counter = "BRANCH"
3333
value = "COVEREDRATIO"
34-
minimum = "0.45".toBigDecimal()
34+
minimum = "0.48".toBigDecimal()
3535
}
3636
}
3737
}

servers/graphql-kotlin-server/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ tasks {
5252
limit {
5353
counter = "BRANCH"
5454
value = "COVEREDRATIO"
55-
minimum = "0.72".toBigDecimal()
55+
minimum = "0.73".toBigDecimal()
5656
}
5757
}
5858
}

servers/graphql-kotlin-spring-server/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ tasks {
2626
limit {
2727
counter = "INSTRUCTION"
2828
value = "COVEREDRATIO"
29-
minimum = "0.85".toBigDecimal()
29+
minimum = "0.87".toBigDecimal()
3030
}
3131
limit {
3232
counter = "BRANCH"
3333
value = "COVEREDRATIO"
34-
minimum = "0.66".toBigDecimal()
34+
minimum = "0.68".toBigDecimal()
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)