imaging_table_regression_test Class Reference
Inheritance diagram for imaging_table_regression_test:
abstract_regression_test_generator< model::table::imaging_table > abstract_generator< model::table::imaging_table >

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_tableparent_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

imaging_table_regression_test ( const std::string &  test_dir)
inline

Constructor

Parameters
test_dirsub directory for baseline
imaging_table_regression_test ( const std::string &  run_folder,
const std::string &  test_dir 
)
inline

Constructor

Parameters
run_folderrun folder
test_dirsub directory for baseline

Member Function Documentation

base_t clone ( ) const
inlineprotectedvirtual

Create a copy of the current object

Returns
pointer to new copy

Implements abstract_regression_test_generator< model::table::imaging_table >.

base_t clone ( const std::string &  run_folder) const
inlineprotectedvirtual

Create a copy of the current object with the given run folder

Parameters
run_folderrun folder
Returns
pointer to new copy

Implements abstract_regression_test_generator< model::table::imaging_table >.

bool generate_actual ( const std::string &  run_folder,
model::table::imaging_table actual 
) const
inlineprotectedvirtual

Read the actual data from the run folder

Parameters
run_folderrun folder
actualactual model data
Returns
true if data was generated

Implements abstract_regression_test_generator< model::table::imaging_table >.

bool read_expected ( const std::string &  baseline_file,
model::table::imaging_table expected 
) const
inlineprotectedvirtual

Read the expected data from the baseline file into the model

Parameters
baseline_filebaseline file
expectedexpected model data
Returns
true if the file was found, and the read completed without failure

Implements abstract_regression_test_generator< model::table::imaging_table >.

void write ( std::ostream &  out) const
inlineprotectedvirtual

Write generator info to output stream

Parameters
outoutput stream

Implements abstract_generator< model::table::imaging_table >.

bool write_actual ( const std::string &  baseline_file,
const model::table::imaging_table actual 
) const
inlineprotectedvirtual

Write the actual data to the run folder

Parameters
baseline_filebaseline file
actualactual model data

Implements abstract_regression_test_generator< model::table::imaging_table >.


The documentation for this class was generated from the following file: