View source: R/test_trace_df.R
coverage_check_has_recorded_tests | R Documentation |
Check whether the coverage object has expected fields produced when coverage
was captured with option(covr.record_tests = TRUE)
, throwing an error
if it was not.
coverage_check_has_recorded_tests(coverage, warn = TRUE)
coverage |
a |
warn |
Whether to warn when it is uncertain whether the tests were recorded. It may be uncertain if tests were recorded if there are no tested R code traces. |
Used for side-effects of emitting an error when a coverage object does not contain recorded traces, or a warning when a coverage object appears to have no tests.
Other coverage_tests:
coverage_get_tests()
,
coverage_has_recorded_tests()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.