feat: Import rlang types-check standalone and implement improvements #433
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.
Import comprehensive type checking functions from rlang standalone and apply them throughout the DBItest codebase to improve argument validation and error handling.
Changes
New Files
R/import-standalone-types-check.R
with 20+ type checking functionsR/import-standalone-obj-type.R
with supporting object type utilitiesEnhanced Type Validation
context.R
: Add validation forset_as_default
(bool),name
(string, nullable),default_skip
(character vector, nullable)run.R
: Add validation forskip
(character, nullable),run_only
(character, nullable),test_suite
(string)spec-meta-bind-.R
: Add validation forrequires_names
(bool, nullable),placeholder_fun
(character/function)utils.R
: Enhancedcheck_df()
to usecheck_data_frame()
for better error messagesBenefits
allow_null
,allow_na
optionsCloses #432
🤖 Generated with Claude Code