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.
Arguments
- DataClass_obj
The R6Class object to perform checks on. Must be a
DataClass
orDataClass
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()