regression_test_metric_generator Class Reference
Inheritance diagram for regression_test_metric_generator:
abstract_regression_test_generator< model::metrics::run_metrics > abstract_generator< model::metrics::run_metrics >

Public Member Functions

 regression_test_metric_generator (const std::string &test_dir)
 
 regression_test_metric_generator (const std::string &run_folder, const std::string &test_dir)
 
- Public Member Functions inherited from abstract_regression_test_generator< model::metrics::run_metrics >
 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::metrics::run_metrics &expected, model::metrics::run_metrics &actual, bool *skip_test) const
 
virtual std::string baseline () const
 
- Public Member Functions inherited from abstract_generator< model::metrics::run_metrics >
 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 &, model::metrics::run_metrics &) const
 
bool generate_actual (const std::string &run_folder, model::metrics::run_metrics &actual) const
 
bool write_actual (const std::string &, const model::metrics::run_metrics &) const
 
base_t clone (const std::string &run_folder) const
 
base_t clone () const
 
void write (std::ostream &out) const
 

Additional Inherited Members

- Public Types inherited from abstract_regression_test_generator< model::metrics::run_metrics >
typedef abstract_generator< model::metrics::run_metrics >::parent_type base_t
 
- Public Types inherited from abstract_generator< model::metrics::run_metrics >
typedef generator_ptr< model::metrics::run_metricsparent_type
 
- Protected Attributes inherited from abstract_regression_test_generator< model::metrics::run_metrics >
std::string m_run_folder
 
std::string m_test_dir
 

Detailed Description

Read in the actual run metrics, leave expected empty

Constructor & Destructor Documentation

regression_test_metric_generator ( const std::string &  test_dir)
inline

Constructor

Parameters
test_dirsub folder where tests are stored
regression_test_metric_generator ( const std::string &  run_folder,
const std::string &  test_dir 
)
inline

Constructor

Parameters
run_folderrun folder with data
test_dirsub folder where tests are stored

Member Function Documentation

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::metrics::run_metrics >.

base_t clone ( ) const
inlineprotectedvirtual

Create a copy of the current object

Returns
pointer to new copy

Implements abstract_regression_test_generator< model::metrics::run_metrics >.

bool generate_actual ( const std::string &  run_folder,
model::metrics::run_metrics actual 
) const
inlineprotectedvirtual

Read the actual data from the run folder

Parameters
run_folderrun folder
actualactual model data
Returns
true

Implements abstract_regression_test_generator< model::metrics::run_metrics >.

bool read_expected ( const std::string &  ,
model::metrics::run_metrics  
) const
inlineprotectedvirtual

This function does nothing

Returns
true

Implements abstract_regression_test_generator< model::metrics::run_metrics >.

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

Write generator info to output stream

Parameters
outoutput stream

Implements abstract_generator< model::metrics::run_metrics >.

bool write_actual ( const std::string &  ,
const model::metrics::run_metrics  
) const
inlineprotectedvirtual

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