illumina::interop::unittest Namespace Reference

Classes

class  abstract_generator
 
class  abstract_regression_test_generator
 
class  argument_generator
 
class  argument_iterator
 
class  by_cycle_metric_generator
 
class  clear_metric_generator
 
class  collapsed_q_plot_test_generator
 
struct  corrected_intensity_metric_v2
 
struct  corrected_intensity_metric_v3
 
struct  corrected_intensity_metric_v4
 
class  empty_plot_test_generator
 
struct  error_metric_requirements
 
struct  error_metric_v3
 
struct  error_metric_v4
 
struct  error_metric_v5
 
struct  error_metric_v6
 
struct  extended_tile_metric_v1
 
struct  extended_tile_metric_v2
 
struct  extended_tile_metric_v3
 
struct  extraction_metric_v2
 
struct  extraction_metric_v3
 
class  failure_listener
 
class  format_registry
 
class  generator_ptr
 
struct  generic_test_fixture
 
class  hardcoded_metric_generator
 
struct  hiseq2500_run_info
 
struct  hiseq4k_run_info
 
struct  image_metric_v1
 
struct  image_metric_v2
 
struct  image_metric_v3
 
struct  index_metric_v1
 
struct  index_metric_v2
 
class  iterator_parameter_generator
 
class  metric_filter_iterator
 
class  metric_test
 
struct  miniseq_run_info
 
struct  miseq_run_info
 
struct  nextseq1k2k_run_info
 
struct  nextseq1k2k_run_info_large
 
struct  nextseq_550_run_info
 
struct  novaseq_run_info
 
struct  phasing_metric_v1
 
struct  phasing_metric_v2
 
class  plot_regression_test_generator
 
class  proxy_argument_generator
 
class  proxy_argument_iterator
 
struct  q_collapsed_metric_no_median_v2
 
struct  q_collapsed_metric_no_median_v3
 
struct  q_collapsed_metric_no_median_v4
 
struct  q_collapsed_metric_no_median_v5
 
struct  q_collapsed_metric_no_median_v5_6
 
struct  q_collapsed_metric_no_median_v6
 
struct  q_collapsed_metric_no_median_v_2_4
 
struct  q_collapsed_metric_v2
 
struct  q_collapsed_metric_v3
 
struct  q_collapsed_metric_v4
 
struct  q_collapsed_metric_v5
 
struct  q_collapsed_metric_v5_6
 
struct  q_collapsed_metric_v6
 
struct  q_collapsed_metric_v_2_4
 
struct  q_metric_requirements
 
struct  q_metric_v4
 
struct  q_metric_v5
 
struct  q_metric_v6
 
struct  q_metric_v6_unbinned
 
struct  q_metric_v7
 
struct  registry_factory
 
class  regression_test_data
 
class  regression_test_metric_generator
 
struct  sparse_value
 
class  standard_parameter_generator
 
struct  summary_run_v1
 
struct  tile_metric_v2
 
struct  tile_metric_v3
 
class  write_read_metric_generator
 

Typedefs

typedef ::testing::Types< corrected_intensity_metric_v2, corrected_intensity_metric_v3, corrected_intensity_metric_v4, error_metric_v3, error_metric_v4, error_metric_v5, error_metric_v6, extended_tile_metric_v1, extended_tile_metric_v2, extended_tile_metric_v3, extraction_metric_v2, extraction_metric_v3, image_metric_v1, image_metric_v2, image_metric_v3, index_metric_v1, index_metric_v2, phasing_metric_v1, phasing_metric_v2, q_collapsed_metric_v2, q_collapsed_metric_v3, q_collapsed_metric_v4, q_collapsed_metric_v5, q_collapsed_metric_v6, q_collapsed_metric_no_median_v2, q_collapsed_metric_no_median_v5, q_metric_v4, q_metric_v5, q_metric_v6, q_metric_v6_unbinned, q_metric_v7, tile_metric_v2, tile_metric_v3, summary_run_v1PublicFormats
 
typedef registry_factory< hardcoded_metric_generatorhardcoded_metric_registry_t
 
typedef registry_factory< write_read_metric_generatorwrite_read_metric_registry_t
 
typedef registry_factory< by_cycle_metric_generatorby_cycle_metric_registry_t
 
typedef registry_factory< clear_metric_generatorclear_metric_registry_t
 

Functions

void read_metrics_safe (model::metrics::run_metrics &metrics, const std::string &run_folder)
 
template<class T >
generator_ptr< T > wrap (abstract_generator< T > *ptr)
 
bool is_float_near (const float expected, const float actual, const float tol)
 
inline::testing::AssertionResult AreFloatsNear (const float expected, const float actual, const float tol)
 
inline::testing::AssertionResult AreValuesNear (const std::vector< float > &expected, const std::vector< float > &actual, const float tol)
 
template<typename T >
::testing::internal::ParamGenerator< T > PersistentValuesIn (const std::vector< T > &values)
 
template<typename T , typename Proxy >
::testing::internal::ParamGenerator< typename T::parent_type > ProxyValuesIn (T &object, const std::vector< Proxy > &values)
 

Typedef Documentation

Function Documentation

inline ::testing::AssertionResult illumina::interop::unittest::AreFloatsNear ( const float  expected,
const float  actual,
const float  tol 
)

Check if two floats are nearly the same. If both are NaN, then this check succeeds

Parameters
expectedexpected float
actualactual float
toltolerance
Returns
true if both numbers hold the same value, or their difference is less than tolerance
inline ::testing::AssertionResult illumina::interop::unittest::AreValuesNear ( const std::vector< float > &  expected,
const std::vector< float > &  actual,
const float  tol 
)

Check if two float arrays are nearly the same. If both are NaN, then this check succeeds

Parameters
expectedexpected vector of floats
actualactual vector of floats
toltolerance
Returns
true if both numbers hold the same value, or their difference is less than tolerance
bool illumina::interop::unittest::is_float_near ( const float  expected,
const float  actual,
const float  tol 
)
inline

Test if two floats are nearly the same If both are NaN, then this check succeeds

Parameters
expectedexpected float
actualactual float
toltolerance
Returns
rue if both numbers hold the same value, or their difference is less than tolerance
::testing::internal::ParamGenerator<T> illumina::interop::unittest::PersistentValuesIn ( const std::vector< T > &  values)

Generate parameters from a persistent vector (cannot be on the stack!)

Note
This code may only work with gtest 1.7.0
Parameters
valueslist of values
Returns
parameter generator
::testing::internal::ParamGenerator< typename T::parent_type > illumina::interop::unittest::ProxyValuesIn ( T &  object,
const std::vector< Proxy > &  values 
)

Generate parameters from a persistent vector (cannot be on the stack!)

Note
This code may only work with gtest 1.7.0
Parameters
objectobject that acts like a functor
valueslist of values
Returns
parameter generator
void illumina::interop::unittest::read_metrics_safe ( model::metrics::run_metrics metrics,
const std::string &  run_folder 
)
inline

Read run metrics safely from the disk

Parameters
metricsrun_metrics object
run_folderpath to the run folder
generator_ptr<T> illumina::interop::unittest::wrap ( abstract_generator< T > *  ptr)

Wrap the pointer in a smart pointer

Parameters
ptrsource pointer to wrap
Returns
smart pointer