dr_expect_quality()
Uses the same gate as ingestion: warning states are allowed; empty results,
failures, evaluation errors and skipped checks fail the expectation.
Usage
dr_expect_quality(x)Arguments
- x
- Quality tibble or result accepted by
dr_quality().
Value
x, invisibly, after recording a testthat expectation.
Examples
\dontshow{if (requireNamespace("testthat", quietly = TRUE)) withAutoprint(\{ # examplesIf}
contract <- dr_contract("orders", version = "1",
columns = c(id = "integer"), key = "id")
dr_expect_quality(dr_validate(data.frame(id = 1:2), contract))
\dontshow{\}) # examplesIf}Documentation source snapshot · View source at d9cb454 ↗
Code examples are documented source examples; they are not executed in this website build.
Code examples are documented source examples; they are not executed in this website build.