I'm having trouble achieving 100% coverage on my new package.
sentryR
has functions to capture errors and report them to the sentry server, but I'm not sure how to test functions that expect error objects or sys.calls()
.
An example is:
capture_function_calls <- function(error) {
error$function_calls <- sys.calls()
signalCondition(error)
}
more here:
- sentryR/R/calls.R at develop · jcpsantiago/sentryR · GitHub
- sentryR/R/plumber_handler.R at develop · jcpsantiago/sentryR · GitHub
Any tips and direction is greatly appreciated