Fix style and maintainability issues in simulatePedigree.R#134
Fix style and maintainability issues in simulatePedigree.R#134smasongarrison merged 4 commits intomainfrom
Conversation
Co-authored-by: smasongarrison <6001608+smasongarrison@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #134 +/- ##
==========================================
+ Coverage 84.39% 84.49% +0.09%
==========================================
Files 30 30
Lines 4979 4971 -8
==========================================
- Hits 4202 4200 -2
+ Misses 777 771 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot can you fix that the our patch coverage is too low? 71.42% of diff hit (target 84.39%) 71.42% of diff hit (target 84.39%) |
Co-authored-by: smasongarrison <6001608+smasongarrison@users.noreply.github.com>
The two uncovered diff lines were in |
Rename man/buildBetweenGenerations.Rd to man/buildBtwnGenerations.Rd and update the Rd metadata (\name, \alias, and usage) to reflect the new function name. Remove three generated vignette figure PNGs (v5_ASOIAF_files/figure-html/unnamed-chunk-5-1/2/3.png) that were previously checked into the repo and can be regenerated by the vignette build.
775ce02 to
676eca2
Compare
seq_len(length(x))→seq_along(x)at lines 369 and 752return()at lines 78, 458, 841, 984buildBetweenGenerations_optimized(34 chars) tobuildBetweenGens_optimized(26 chars)else if (length(random_numbers) < nCouples)branches (dead code) to improve patch coverageOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.