Skip to content

Add tests to lift R-side coverage to its practical maximum#2

Merged
billdenney merged 1 commit into
mainfrom
coverage-bump
May 28, 2026
Merged

Add tests to lift R-side coverage to its practical maximum#2
billdenney merged 1 commit into
mainfrom
coverage-bump

Conversation

@billdenney
Copy link
Copy Markdown
Member

Adds tests for the dispatcher's input-coercion and validation paths (unknown method, unsupported matrix mode, 1-D / 3-D arrays), the max_iter parameter, idempotence on already-thin skeletons across all four algorithms, output-border quietude, degenerate small inputs, and larger varied shapes (rings, notched squares). Coverage rises from 95.20% to 99.20%; the two remaining uncovered lines are defensive branches that are unreachable from R-level inputs in R >= 4.0 (R/thin.R:69 dead-codes a 2-D array branch that is shadowed by is.matrix(), src/lee.cpp:42 is a switch default for a 0..3 enum).

testthat expectations: 139 (was 38). lintr::lint_package() clean.

Adds tests for the dispatcher's input-coercion and validation paths
(unknown method, unsupported matrix mode, 1-D / 3-D arrays), the
max_iter parameter, idempotence on already-thin skeletons across all
four algorithms, output-border quietude, degenerate small inputs, and
larger varied shapes (rings, notched squares). Coverage rises from
95.20% to 99.20%; the two remaining uncovered lines are defensive
branches that are unreachable from R-level inputs in R >= 4.0
(R/thin.R:69 dead-codes a 2-D array branch that is shadowed by
is.matrix(), src/lee.cpp:42 is a switch default for a 0..3 enum).

testthat expectations: 139 (was 38). lintr::lint_package() clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@billdenney billdenney merged commit d0657e7 into main May 28, 2026
9 checks passed
@billdenney billdenney deleted the coverage-bump branch May 28, 2026 12:56
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.

1 participant