Public Member Functions | |
imaging_table_regression_test (const std::string &test_dir) | |
imaging_table_regression_test (const std::string &run_folder, const std::string &test_dir) | |
Public Member Functions inherited from abstract_regression_test_generator< model::table::imaging_table > | |
abstract_regression_test_generator (const std::string &test_dir, const int test_modifier=0) | |
abstract_regression_test_generator (const std::string &run_folder, const std::string &test_dir, const int test_modifier=0) | |
base_t | operator() (const std::string &name) const |
::testing::AssertionResult | generate (model::table::imaging_table &expected, model::table::imaging_table &actual, bool *skip_test) const |
virtual std::string | baseline () const |
Public Member Functions inherited from abstract_generator< model::table::imaging_table > | |
abstract_generator (const int test_modifier=0) | |
virtual | ~abstract_generator () |
virtual bool | advance () |
int | test_modifier () const |
std::string | info () const |
Protected Member Functions | |
bool | read_expected (const std::string &baseline_file, model::table::imaging_table &expected) const |
bool | generate_actual (const std::string &run_folder, model::table::imaging_table &actual) const |
bool | write_actual (const std::string &baseline_file, const model::table::imaging_table &actual) const |
base_t | clone () const |
base_t | clone (const std::string &run_folder) const |
void | write (std::ostream &out) const |
Additional Inherited Members | |
Public Types inherited from abstract_regression_test_generator< model::table::imaging_table > | |
typedef abstract_generator< model::table::imaging_table >::parent_type | base_t |
Public Types inherited from abstract_generator< model::table::imaging_table > | |
typedef generator_ptr< model::table::imaging_table > | parent_type |
Protected Attributes inherited from abstract_regression_test_generator< model::table::imaging_table > | |
std::string | m_run_folder |
std::string | m_test_dir |
Detailed Description
Imaging regression test fixture
This provides the test group name, provides the tested type as imaging_table, ensures the output file is prefixed with image_table and finally properly sets up the expected imaging_table object.
Constructor & Destructor Documentation
|
inline |
Constructor
- Parameters
-
test_dir sub directory for baseline
|
inline |
Constructor
- Parameters
-
run_folder run folder test_dir sub directory for baseline
Member Function Documentation
|
inlineprotectedvirtual |
Create a copy of the current object
- Returns
- pointer to new copy
Implements abstract_regression_test_generator< model::table::imaging_table >.
|
inlineprotectedvirtual |
Create a copy of the current object with the given run folder
- Parameters
-
run_folder run folder
- Returns
- pointer to new copy
Implements abstract_regression_test_generator< model::table::imaging_table >.
|
inlineprotectedvirtual |
Read the actual data from the run folder
- Parameters
-
run_folder run folder actual actual model data
- Returns
- true if data was generated
Implements abstract_regression_test_generator< model::table::imaging_table >.
|
inlineprotectedvirtual |
Read the expected data from the baseline file into the model
- Parameters
-
baseline_file baseline file expected expected model data
- Returns
- true if the file was found, and the read completed without failure
Implements abstract_regression_test_generator< model::table::imaging_table >.
|
inlineprotectedvirtual |
Write generator info to output stream
- Parameters
-
out output stream
Implements abstract_generator< model::table::imaging_table >.
|
inlineprotectedvirtual |
Write the actual data to the run folder
- Parameters
-
baseline_file baseline file actual actual model data
Implements abstract_regression_test_generator< model::table::imaging_table >.
The documentation for this class was generated from the following file:
- /io/src/tests/interop/logic/imaging_table_regression_test.cpp