Skip to content

fix: calls to close in tests unchecked for lint#1678

Merged
TerryHowe merged 3 commits into
oras-project:mainfrom
TerryHowe:fix-lint-tests-error-handling
May 12, 2025
Merged

fix: calls to close in tests unchecked for lint#1678
TerryHowe merged 3 commits into
oras-project:mainfrom
TerryHowe:fix-lint-tests-error-handling

Conversation

@TerryHowe

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Ignore some error returns for tests to fix newer lint.

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@codecov

codecov Bot commented Mar 31, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.92%. Comparing base (8b549f8) to head (acb8e0f).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1678      +/-   ##
==========================================
+ Coverage   84.88%   84.92%   +0.03%     
==========================================
  Files         128      128              
  Lines        5751     5751              
==========================================
+ Hits         4882     4884       +2     
+ Misses        619      617       -2     
  Partials      250      250              

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

Comment thread cmd/oras/internal/option/pretty_test.go
@TerryHowe TerryHowe changed the title fix: calls to close in tests unchecked fix: calls to close in tests unchecked for lint May 10, 2025

@Wwwsylvia Wwwsylvia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread cmd/oras/internal/option/pretty_test.go
@TerryHowe TerryHowe merged commit 8ffd08b into oras-project:main May 12, 2025
6 checks passed
qweeah pushed a commit to qweeah/oras that referenced this pull request May 13, 2025
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 28, 2025
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@TerryHowe TerryHowe deleted the fix-lint-tests-error-handling branch September 11, 2025 13:34
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.

2 participants