test_return: Test return method works correctly

Description Usage Arguments See Also

Description

Test data can be returned correctly using the return method. return is invoked to generate returned data which is then checked to ensure it is a data.frame, not empty and has at least 2 columns. Each column is then checked to ensure it contains data and is not just composed of NAs.

Usage

1
test_return(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_cleaning(), test_download_JSON(), test_download(), test_processing()


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