Skip to content

Increase test coverage for handlers

Codecov / codecov/project succeeded Aug 9, 2024 in 1s

83.14% (target 75.00%)

View this Pull Request on Codecov

83.14% (target 75.00%)

Details

Codecov Report

Attention: Patch coverage is 76.19048% with 25 lines in your changes missing coverage. Please review.

Project coverage is 83.14%. Comparing base (f85f57b) to head (ecd9e7f).
Report is 1 commits behind head on main.

Files Patch % Lines
cmd/oras/internal/display/status/tty.go 52.38% 10 Missing ⚠️
cmd/oras/internal/display/status/text.go 80.76% 2 Missing and 3 partials ⚠️
cmd/oras/root/cp.go 28.57% 3 Missing and 2 partials ⚠️
internal/testutils/fetcher.go 72.72% 3 Missing ⚠️
cmd/oras/root/attach.go 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1443      +/-   ##
==========================================
- Coverage   83.29%   83.14%   -0.16%     
==========================================
  Files         110      111       +1     
  Lines        3892     3928      +36     
==========================================
+ Hits         3242     3266      +24     
- Misses        426      438      +12     
  Partials      224      224              

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