Skip to content

codegen w/ go version guards - ErrorAsType (go1.26) - #132

Merged
fredbi merged 4 commits into
go-openapi:masterfrom
fredbi:worktree-go-version-guards
Jun 22, 2026
Merged

codegen w/ go version guards - ErrorAsType (go1.26)#132
fredbi merged 4 commits into
go-openapi:masterfrom
fredbi:worktree-go-version-guards

test(ci): fixup tests for CI running go1.25 with GOTOOLCHAIN=local

f490f00
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 22, 2026 in 1s

91.62% (-0.08%) compared to d3fde91

View this Pull Request on Codecov

91.62% (-0.08%) compared to d3fde91

Details

Codecov Report

❌ Patch coverage is 86.13861% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.62%. Comparing base (d3fde91) to head (f490f00).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
codegen/internal/generator/generator.go 77.94% 7 Missing and 8 partials ⚠️
codegen/internal/scanner/scanner.go 60.00% 2 Missing and 2 partials ⚠️
internal/assertions/error_go126.go 88.88% 2 Missing and 1 partial ⚠️
codegen/internal/generator/render.go 83.33% 1 Missing and 1 partial ⚠️
codegen/internal/model/documentation.go 71.42% 1 Missing and 1 partial ⚠️
codegen/internal/scanner/buildtags.go 88.88% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #132      +/-   ##
==========================================
- Coverage   91.70%   91.62%   -0.08%     
==========================================
  Files          97      103       +6     
  Lines       12651    12834     +183     
==========================================
+ Hits        11601    11759     +158     
- Misses        827      840      +13     
- Partials      223      235      +12     

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