Skip to content

feat: generate request construction to avoid reflection pipeline#2150

Merged
glennawatson merged 13 commits into
mainfrom
refit-generator-v2
Jun 20, 2026
Merged

feat: generate request construction to avoid reflection pipeline#2150
glennawatson merged 13 commits into
mainfrom
refit-generator-v2

feat: add modular helpers for interface stub generation and request p…

2bcfc7d
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 20, 2026 in 1s

97.49% (+19.32%) compared to c7c14b4

View this Pull Request on Codecov

97.49% (+19.32%) compared to c7c14b4

Details

Codecov Report

❌ Patch coverage is 97.56824% with 49 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.49%. Comparing base (c7c14b4) to head (2bcfc7d).

Files with missing lines Patch % Lines
...rc/InterfaceStubGenerator.Shared/Parser.Request.cs 96.61% 0 Missing and 9 partials ⚠️
...rc/InterfaceStubGenerator.Shared/Parser.Helpers.cs 75.00% 3 Missing and 4 partials ⚠️
...it/RequestBuilderImplementation.QueryAndHeaders.cs 90.76% 3 Missing and 3 partials ⚠️
...stBuilderImplementation.QueryAndHeaders.Helpers.cs 89.74% 2 Missing and 2 partials ⚠️
src/InterfaceStubGenerator.Shared/Emitter.cs 99.04% 0 Missing and 3 partials ⚠️
...faceStubGenerator.Shared/Parser.Request.Helpers.cs 96.20% 1 Missing and 2 partials ⚠️
...c/Refit.HttpClientFactory/HttpClientFactoryCore.cs 83.33% 1 Missing and 2 partials ⚠️
src/Refit/RequestBuilderImplementation.cs 93.47% 1 Missing and 2 partials ⚠️
...aceStubGenerator.Shared/ImmutableEquatableArray.cs 93.33% 1 Missing and 1 partial ⚠️
src/InterfaceStubGenerator.Shared/Parser.cs 98.26% 0 Missing and 2 partials ⚠️
... and 6 more
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2150       +/-   ##
===========================================
+ Coverage   78.17%   97.49%   +19.32%     
===========================================
  Files          97      105        +8     
  Lines        3821     4711      +890     
  Branches      715      845      +130     
===========================================
+ Hits         2987     4593     +1606     
+ Misses        690       31      -659     
+ Partials      144       87       -57     

☔ View full report in Codecov by Harness.
📢 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.