Skip to content

Add unit tests for tidy parameter selection helpers#493

Open
utkarshpawade wants to merge 1 commit intostan-dev:masterfrom
utkarshpawade:fix/add-tidy-params-unit-tests
Open

Add unit tests for tidy parameter selection helpers#493
utkarshpawade wants to merge 1 commit intostan-dev:masterfrom
utkarshpawade:fix/add-tidy-params-unit-tests

Conversation

@utkarshpawade
Copy link
Contributor

Fixes #492

Summary

  • Add tests/testthat/test-tidy-params.R with 19 unit tests covering param_range(), param_glue(), and tidyselect_parameters()
  • Tests cover correct selection, edge cases (no matches, partial matches, single index), error handling, and integration with vars() via prepare_mcmc_array()

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.66%. Comparing base (a30a706) to head (ab18e91).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #493   +/-   ##
=======================================
  Coverage   98.66%   98.66%           
=======================================
  Files          35       35           
  Lines        5857     5857           
=======================================
  Hits         5779     5779           
  Misses         78       78           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

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.

Add unit tests for tidy parameter selection helpers

2 participants