Repository navigation
Remove an unused binding from test/tensorproduct.jl (fatou 0.22.0) - #30
Merged
Merged
Conversation
fatou 0.22.0 reports unused-binding for x1 and x2 at test/tensorproduct.jl:287. The next two lines bind the same values as X1, X2 and W1, W2, and both right-hand sides are side-effect-free accessors, so the line goes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The deleted expressions duplicate side-effect-free accessor calls whose results remain correctly bound below.
Review effort: Balanced
Findings: None
What changed in this PR
Removes redundant test bindings flagged by fatou without changing behavior.
Changes:
- Deletes unused quadrature accessor results.
- Documents the cleanup in the changelog.
| File | Description |
|---|---|
test/tensorproduct.jl |
Removes unused bindings. |
CHANGELOG.md |
Records the cleanup. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finding
fatou 0.22.0 (
fatou lint --output json src test) reports two findings onmain(02cab5b), bothunused-binding, ontest/tensorproduct.jl:287:x1is assigned but never usedx2is assigned but never usedFix
The line is deleted. The next two lines bind the same values as
X1, X2 = quadrature_nodes(q)andW1, W2 = quadrature_weights(q), and the testset reads only those. Both right-hand sides are side-effect-free accessors, so the deletion changes no behaviour. No rename to_and no suppression. No source file changes.Evidence
unused-bindingfindings above. After:[](checked 23 file(s): clean).test/tensorproduct.jl(the "Tensor products" testset): 408/408 pass before the edit and 408/408 after, so no@testwas lost.coregroup: 65122/65122 pass.Pre-PR verification
Fixed: none.
Unresolved: none.
Pre-existing:
[Unreleased]section has only### New Features, so this test cleanup is listed there, next to the earlier test-infrastructure entries.Checked and clean:
x1, x2 = quadrature_nodes(q), quadrature_weights(q)bound names that nothing uses. Both callees are pure accessors, so the deletion removes no side effect. The testset already binds the same values asX1, X2andW1, W2.unused-bindingforx1andx2attest/tensorproduct.jl:287. The branch reports none ([]).[Unreleased]. No history phrases appear outsideCHANGELOG.md.test/tensorproduct.jlpasses 408/408 before and after the edit. The core group passes 65122/65122.Not checked:
src/line and no method definition changed, so no finding could come from this diff.🤖 Generated with Claude Code