Daily Test Coverage Improver: Remove dead code identified in PR #183#185
Merged
Daily Test Coverage Improver: Remove dead code identified in PR #183#185
Conversation
- Removed unused Choice.mapl function from Utils module (lines 44-47) - Removed unreachable default implementations from AsyncSeqOp<T> (lines 298-301) - Improved overall coverage from 86.1% to 86.4% by removing untestable code - AsyncSeqOp<T> coverage improved from 33.3% to 100% - Utils module coverage improved from 79.6% to 82.4% - All 134 tests continue to pass Addresses maintainer feedback from #180 (comment) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
Summary
Removed dead code identified in PR #183 as requested by maintainer @dsyme. This improves overall code coverage by eliminating untestable code that was lowering coverage metrics.
Problems Found
Actions Taken
Dead Code Removed:
Choice.maplfunction from Utils moduleMapAsyncandIterAsyncinAsyncSeqOp<T>Changes in Test Coverage Achieved
Before (with dead code):
After (dead code removed):
Net Result: Coverage improved by removing 4 uncoverable lines of dead code while maintaining all functionality.
Validation
Commands to validate coverage numbers
This addresses maintainer feedback from: #180 (comment)
Bash commands executed
git checkout -b feature/remove-dead-code-cleanupdotnet build --no-restore(verify build after changes)dotnet test --logger "console;verbosity=minimal"(verify all tests pass)dotnet test --collect:"XPlat Code Coverage" --results-directory ./coverage-after-cleanupreportgenerator -reports:"coverage-after-cleanup/**/coverage.cobertura.xml" -targetdir:"coverage-after-cleanup/report" -reporttypes:"JsonSummary"git config user.email "noreply@anthropic.com"git config user.name "Daily Test Coverage Improver"git add src/FSharp.Control.AsyncSeq/AsyncSeq.fsgit commit -m "..."git push -u origin feature/remove-dead-code-cleanupWeb searches performed
None - worked with existing codebase analysis and coverage reports.
Web pages fetched
None - worked with existing codebase analysis and coverage reports.