#include <generic_fixture.h>
Public Types | |
typedef generator_ptr< T > | parent_type |
Public Member Functions | |
abstract_generator (const int test_modifier=0) | |
virtual | ~abstract_generator () |
virtual ::testing::AssertionResult | generate (T &expected, T &actual, bool *skip_test) const =0 |
virtual bool | advance () |
virtual parent_type | clone () const =0 |
int | test_modifier () const |
virtual void | write (std::ostream &out) const =0 |
std::string | info () const |
Friends | |
std::ostream & | operator<< (std::ostream &out, const abstract_generator< T > &gen) |
Detailed Description
template<class T>
class illumina::interop::unittest::abstract_generator< T >
Abstract interface for generators
Member Typedef Documentation
typedef generator_ptr<T> parent_type |
Pointer to abtract generator
Constructor & Destructor Documentation
|
inline |
Constructor
- Parameters
-
test_modifier flag that modifies the test
|
inlinevirtual |
Destructor
Member Function Documentation
|
inlinevirtual |
Advance to the next type
- Returns
- true when the generator has finished, and the next parameter can be obtained
Reimplemented in iterator_parameter_generator< T, Fixture >, plot_regression_test_generator< PlotData >, collapsed_q_plot_test_generator< PlotData >, and empty_plot_test_generator< PlotData >.
|
pure virtual |
Create a copy of this object
- Returns
- pointer to copy
Implemented in regression_test_summary_generator< Logic >, run_summary_generator< Gen, SummaryLogic >, clear_metric_generator< Gen >, regression_test_index_summary_generator, regression_test_metric_generator< MetricSet >, imaging_table_regression_test, by_cycle_metric_generator< Gen >, index_summary_generator< IndexGen, TileGen >, abstract_regression_test_generator< Model >, abstract_regression_test_generator< MetricSet >, abstract_regression_test_generator< model::metrics::run_metrics >, abstract_regression_test_generator< model::table::imaging_table >, abstract_regression_test_generator< model::summary::index_flowcell_summary >, abstract_regression_test_generator< model::summary::run_summary >, abstract_regression_test_generator< PlotData >, standard_parameter_generator< T, Fixture >, write_read_metric_generator< Gen >, plot_regression_test_generator< PlotData >, regression_test_metric_generator, collapsed_q_plot_test_generator< PlotData >, empty_plot_test_generator< PlotData >, hardcoded_metric_generator< Gen >, and write_metric_generator< Gen >.
|
pure virtual |
Generate the expected and actual metric sets
- Parameters
-
expected expected object actual actual object skip_test flag to set if the test should be skipped
- Returns
- success if the results should be tested
Implemented in run_summary_generator< Gen, SummaryLogic >, clear_metric_generator< Gen >, index_summary_generator< IndexGen, TileGen >, by_cycle_metric_generator< Gen >, standard_parameter_generator< T, Fixture >, write_read_metric_generator< Gen >, abstract_regression_test_generator< Model >, abstract_regression_test_generator< MetricSet >, abstract_regression_test_generator< model::metrics::run_metrics >, abstract_regression_test_generator< model::table::imaging_table >, abstract_regression_test_generator< model::summary::index_flowcell_summary >, abstract_regression_test_generator< model::summary::run_summary >, abstract_regression_test_generator< PlotData >, collapsed_q_plot_test_generator< PlotData >, empty_plot_test_generator< PlotData >, hardcoded_metric_generator< Gen >, and write_metric_generator< Gen >.
|
inline |
Generator information
- Returns
- generator info
|
inline |
Flag that modifies the test
- Returns
- flag that modifies the test
|
pure virtual |
Write generator info to output stream
- Parameters
-
out output stream
Implemented in regression_test_summary_generator< Logic >, run_summary_generator< Gen, SummaryLogic >, clear_metric_generator< Gen >, regression_test_index_summary_generator, regression_test_metric_generator< MetricSet >, imaging_table_regression_test, by_cycle_metric_generator< Gen >, index_summary_generator< IndexGen, TileGen >, standard_parameter_generator< T, Fixture >, write_read_metric_generator< Gen >, regression_test_metric_generator, plot_regression_test_generator< PlotData >, collapsed_q_plot_test_generator< PlotData >, empty_plot_test_generator< PlotData >, hardcoded_metric_generator< Gen >, and write_metric_generator< Gen >.
Friends And Related Function Documentation
|
friend |
Write name of generator to output stream
- Parameters
-
out output stream gen generator
- Returns
- output stream
The documentation for this class was generated from the following file:
- /io/src/tests/interop/inc/generic_fixture.h