Skip to content

test: fix unused test parameters - #2093

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
binggao1230:fix-2092-unused-test-params
Jun 22, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
binggao1230:fix-2092-unused-test-params

Conversation

@binggao1230

Copy link
Copy Markdown
Contributor

What does this PR change?

Renames unused test-helper callback parameters to _ so revive no longer reports unused-parameter lint failures.

Fixes #2092.

Verification

  • mise x [email protected] [email protected] -- sh -lc 'gofmt -w cmd/oras/root/discover_test.go internal/graph/graph_test.go && go test ./cmd/oras/root ./internal/graph && golangci-lint run ./...'

@binggao1230
binggao1230 force-pushed the fix-2092-unused-test-params branch from 511d72d to 7efa8e2 Compare June 22, 2026 15:30
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.24%. Comparing base (440eb65) to head (7efa8e2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2093      +/-   ##
==========================================
- Coverage   87.27%   87.24%   -0.04%     
==========================================
  Files         138      138              
  Lines        5486     5486              
==========================================
- Hits         4788     4786       -2     
- Misses        417      419       +2     
  Partials      281      281              

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

@TerryHowe TerryHowe 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

Thanks!

@TerryHowe
TerryHowe merged commit 3ccac87 into oras-project:main Jun 22, 2026
9 checks passed
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.

Simple Lint Problem

2 participants