-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert check to assert #795
Conversation
Code Coverage Summary
Diff against main
Results for commit: a2fabb2 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the docs so that init says modules
can be of the appropriate type which then meant I needed to update the docs of other modules as for those they cannot be list of teal_module.
R/init.R
Outdated
checkmate::assert_multi_class(modules, c("teal_module", "list", "teal_modules")) | ||
checkmate::check_list(modules) | ||
checkmate::check_class(modules, "teal_modules") | ||
checkmate::assert_list(filter, min.len = 0, names = "unique") | ||
checkmate::assert_subset(names(filter), choices = teal.data::get_dataname(data)) | ||
checkmate::assert_character(id, max.len = 1, any.missing = FALSE) | ||
|
||
teal.logger::log_system_info() | ||
|
||
if (is(modules, "teal_module")) { | ||
modules <- teal::modules(modules) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm you reverted my changes - was that intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope - whoops
Signed-off-by: Nikolas Burkoff <nikolas.burkoff@capgemini.com>
refers to insightsengineering/nestdevs-tasks#3
fix checks so that we fail instead of just return false that is not used at all