reactiveui / refit

The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.
https://reactiveui.github.io/refit/
MIT License
8.66k stars 744 forks source link

feat: add `Tests/RestServiceExceptions` #1886

Closed TimothyMakkison closed 1 month ago

TimothyMakkison commented 1 month ago

Added tests to verify that RestMethodInfo throws an exception when invalid interfaces are initialized through RestService.For.

This duplicates tests found in Refit.Tests/RequestBuilder however these will have to deleted if I get round to removing RequestBuilder and all corresponding runtime logic

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.28%. Comparing base (6ebeda5) to head (f808cf5). Report is 141 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1886 +/- ## ========================================== - Coverage 87.73% 84.28% -3.45% ========================================== Files 33 36 +3 Lines 2348 2476 +128 Branches 294 347 +53 ========================================== + Hits 2060 2087 +27 - Misses 208 310 +102 + Partials 80 79 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 3 weeks ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.