Skip to content

Address @smnnlt follow-up: streamline tests and remove purrr#19

Merged
HzaCode merged 1 commit intomainfrom
address-smnnlt-final-review
Feb 13, 2026
Merged

Address @smnnlt follow-up: streamline tests and remove purrr#19
HzaCode merged 1 commit intomainfrom
address-smnnlt-final-review

Conversation

@HzaCode
Copy link
Owner

@HzaCode HzaCode commented Feb 13, 2026

Summary

Addresses the remaining points raised by @smnnlt in the final follow-up review:

  • Test suite streamlined: reduced from ~600 to 373 focused assertions. All pass locally with zero warnings and zero skips: [ FAIL 0 | WARN 0 | SKIP 0 | PASS 373 ]
  • Test idioms fixed: replaced expect_true(is.data.frame()) with expect_s3_class(), expect_equal(length()) with expect_length(), removed redundant gg-class checks (already covered by vdiffr snapshots)
  • Test structure cleaned up: deleted fragmented files (test-smoke-and-errors.R, test-uncovered-branches.R, etc.) and consolidated into per-feature test files
  • Mock data replaced: switched to inst/extdata/ example data via shared helper-test-data.R where possible
  • purrr dependency removed entirely (was only used once via superseded purrr::transpose())
  • CITATION.cff removed (was flagged as non-standard by R CMD check)
  • NAMESPACE / DESCRIPTION / .Rbuildignore cleaned up

Verification

  • devtools::test(): FAIL 0 | WARN 0 | SKIP 0 | PASS 373
  • devtools::check(): 0 errors, 0 warnings, 1 note (unable to verify current time)

- rewrote test suite from ~600 to 373 focused assertions (0 fail / 0 warn / 0 skip on local devtools::test())

- replaced expect_true(is.data.frame()) with expect_s3_class(), expect_equal(length()) with expect_length()

- removed redundant gg-class checks now covered by vdiffr snapshots

- deleted test-smoke-and-errors.R, test-uncovered-branches.R and other fragmented test files

- replaced mock helpers with inst/extdata/ example data where possible

- removed purrr from dependencies entirely

- removed CITATION.cff (flagged by R CMD check)

- cleaned up NAMESPACE, DESCRIPTION, and .Rbuildignore

- R CMD check: 0 errors, 0 warnings
@HzaCode HzaCode merged commit 97e2691 into main Feb 13, 2026
6 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.

1 participant