test_cleaning: Test clean method works correctly

Description Usage Arguments See Also

Description

Test data can be cleaned properly. The clean method is invoked to generate clean data. This data is checked to ensure it is a data.frame, is not empty, has at least two columns and that columns are clean by calling expect_clean_cols. Also tests that avaliable_regions() are not NA and they are all characters.

Usage

1
test_cleaning(DataClass_obj)

Arguments

DataClass_obj

The R6Class object to perform checks on. Must be a DataClass or DataClass child object.

See Also

Functions used for testing data is cleaned and processed correctly expect_clean_cols(), expect_columns_contain_data(), expect_processed_cols(), test_download_JSON(), test_download(), test_processing(), test_return()


covidregionaldata documentation built on Feb. 7, 2022, 9:07 a.m.