Skip to content

fix: fix exception for Iterables without type variable#545

Merged
stuebingerb merged 1 commit intomainfrom
fix/fix-exception-for-Kotlin-ranges
Feb 21, 2026
Merged

fix: fix exception for Iterables without type variable#545
stuebingerb merged 1 commit intomainfrom
fix/fix-exception-for-Kotlin-ranges

Conversation

@stuebingerb
Copy link
Owner

Mostly reverts d8ce008 to rely on Collection::class instead of Iterable::class again, as the latter broke Kotlin IntRange without adding clear benefits (it would IMO be debatable if a range should even be represented as list).

Resolves #176

Mostly reverts d8ce008 to rely on
`Collection::class` instead of `Iterable::class` again, as the latter
broke Kotlin `IntRange` without adding clear benefits (it would IMO
be debatable if a range should even be represented as list).

Resolves #176
@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.75%. Comparing base (fb49820) to head (3bd7fe5).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...c/main/kotlin/com/apurebase/kgraphql/Extensions.kt 33.33% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #545      +/-   ##
==========================================
- Coverage   83.78%   83.75%   -0.04%     
==========================================
  Files         152      152              
  Lines        4922     4924       +2     
  Branches      863      864       +1     
==========================================
  Hits         4124     4124              
- Misses        496      497       +1     
- Partials      302      303       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

🐰 Bencher Report

Branchfix/fix-exception-for-Kotlin-ranges
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
com.apurebase.kgraphql.FunctionExecutionBenchmark.benchmarkFunctionExecution📈 view plot
🚷 view threshold
6,105,867.89 ops/s
(+1.86%)Baseline: 5,994,443.19 ops/s
5,623,375.12 ops/s
(92.10%)
com.apurebase.kgraphql.ParallelExecutionBenchmark.queryBenchmark📈 view plot
🚷 view threshold
1.30 ops/s
(+0.05%)Baseline: 1.30 ops/s
1.30 ops/s
(99.83%)
com.apurebase.kgraphql.QueryBenchmark.largeList📈 view plot
🚷 view threshold
4.62 ops/s
(+6.59%)Baseline: 4.33 ops/s
1.88 ops/s
(40.63%)
com.apurebase.kgraphql.QueryBenchmark.manyChildren📈 view plot
🚷 view threshold
192.29 ops/s
(-1.51%)Baseline: 195.24 ops/s
183.92 ops/s
(95.65%)
com.apurebase.kgraphql.QueryBenchmark.manyDataChildren📈 view plot
🚷 view threshold
8.97 ops/s
(+0.13%)Baseline: 8.96 ops/s
8.89 ops/s
(99.07%)
com.apurebase.kgraphql.QueryBenchmark.manyOperations📈 view plot
🚷 view threshold
290.55 ops/s
(-0.50%)Baseline: 292.01 ops/s
250.23 ops/s
(86.12%)
com.apurebase.kgraphql.QueryBenchmark.nestedObject📈 view plot
🚷 view threshold
8,021.33 ops/s
(+0.64%)Baseline: 7,970.65 ops/s
6,787.01 ops/s
(84.61%)
com.apurebase.kgraphql.RequestCachingBenchmark.invalidRequest📈 view plot
🚷 view threshold
223,556.20 ops/s
(-1.35%)Baseline: 226,612.74 ops/s
209,466.83 ops/s
(93.70%)
com.apurebase.kgraphql.RequestCachingBenchmark.largeRequest📈 view plot
🚷 view threshold
7,988.14 ops/s
(-2.75%)Baseline: 8,214.19 ops/s
7,191.89 ops/s
(90.03%)
com.apurebase.kgraphql.RequestCachingBenchmark.smallRequest📈 view plot
🚷 view threshold
12,240.21 ops/s
(+0.39%)Baseline: 12,192.62 ops/s
10,382.40 ops/s
(84.82%)
com.apurebase.kgraphql.SimpleExecutionOverheadBenchmark.benchmark📈 view plot
🚷 view threshold
459,528.38 ops/s
(-2.27%)Baseline: 470,180.99 ops/s
454,730.29 ops/s
(98.96%)
🐰 View full continuous benchmarking report in Bencher

@stuebingerb stuebingerb merged commit 908b6f8 into main Feb 21, 2026
9 of 11 checks passed
@stuebingerb stuebingerb deleted the fix/fix-exception-for-Kotlin-ranges branch February 21, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception when handling implementations of Iterable that do not have a type variable

1 participant