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
By cycle metric registry
By cycle metric registry
Hardcoded metric registry
Write-read metric registry
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
-
expected expected float actual actual float tol tolerance
- 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
-
expected expected vector of floats actual actual vector of floats tol tolerance
- Returns
- true if both numbers hold the same value, or their difference is less than tolerance
|
inline |
Test if two floats are nearly the same If both are NaN, then this check succeeds
- Parameters
-
expected expected float actual actual float tol tolerance
- 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
-
values list 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
-
object object that acts like a functor values list of values
- Returns
- parameter generator
|
inline |
Read run metrics safely from the disk
- Parameters
-
metrics run_metrics object run_folder path to the run folder
generator_ptr<T> illumina::interop::unittest::wrap | ( | abstract_generator< T > * | ptr | ) |
Wrap the pointer in a smart pointer
- Parameters
-
ptr source pointer to wrap
- Returns
- smart pointer