Skip to contents

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

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()