Skip to content

Close the coverage gaps in the batch review queries and result mapper - #25

Merged
stphnwlsh merged 1 commit into
mainfrom
fix/test-coverage
Oct 29, 2026
Merged

stphnwlsh merged 1 commit into
mainfrom
fix/test-coverage

Conversation

@stphnwlsh

@stphnwlsh stphnwlsh commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Codecov flagged partial branches on the best-practices merge. This covers them.

  • GetReviewsForMovies and GetReviewsForAuthors handler tests now include a review with no movie or author, which the handler leaves out. Same change in all five repos.
  • New ResultMapperTests cover every mapping: movies and authors with and without reviews, the summaries, reviews with and without their own movie and author, and the next offset on a page.

Related issues

None.

Type of change

  • Bug fix
  • New feature
  • Breaking change (the generated solution or template parameters change in a way existing users will notice)
  • Refactoring or clean-up
  • Documentation
  • Build, pipeline or dependency update

Shared layers

  • This only touches the Presentation layer of this template.
  • This touches the Application or Infrastructure layers, tests, pipeline or repository setup, so it needs to be carried across all five templates.

Checklist

  • dotnet build and dotnet test pass locally with no warnings.
  • I added or updated tests, and coverage stays at or above 95%.
  • I updated the README or docs where behaviour changed.
  • I checked the template still installs and creates a working solution (see CONTRIBUTING.md).

@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.32%. Comparing base (97a7f2c) to head (59375ea).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   98.51%   99.32%   +0.80%     
==========================================
  Files          73       73              
  Lines         741      741              
  Branches       51       51              
==========================================
+ Hits          730      736       +6     
+ Partials       11        5       -6     

☔ 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.

@stphnwlsh
stphnwlsh merged commit b4911f0 into main Oct 29, 2026
12 checks passed
@stphnwlsh
stphnwlsh deleted the fix/test-coverage branch October 29, 2026 14:11
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.

1 participant