generic_fixture.h
Go to the documentation of this file.
385 inline ::testing::AssertionResult AreFloatsNear(const float expected, const float actual, const float tol)
388 return ::testing::AssertionFailure() << "Abs(" << expected << " - " << actual << ") >= " << tol;
408 return ::testing::AssertionFailure() << "Expected size: " << expected.size() << " != actual: " << actual.size();
425 #define INTEROP_ASSERT_NEAR(EXPECTED, ACTUAL, TOL) ASSERT_TRUE(::illumina::interop::unittest::AreFloatsNear(EXPECTED, ACTUAL, TOL))
426 #define INTEROP_EXPECT_NEAR(EXPECTED, ACTUAL, TOL) EXPECT_TRUE(::illumina::interop::unittest::AreFloatsNear(EXPECTED, ACTUAL, TOL))
427 #define INTEROP_EXPECT_ARRAY_NEAR(EXPECTED, ACTUAL, TOL) EXPECT_TRUE(::illumina::interop::unittest::AreValuesNear(EXPECTED, ACTUAL, TOL))
Definition: generic_fixture.h:100
generator_ptr(abstract_generator< T > *ptr=0)
Definition: generic_fixture.h:193
standard_parameter_generator(const parameter_type parameter)
Definition: generic_fixture.h:109
Definition: generic_fixture.h:327
generic_test_fixture()
Definition: generic_fixture.h:340
base_type clone() const
Definition: generic_fixture.h:136
bool operator==(const abstract_generator< T > *other)
Definition: generic_fixture.h:280
void write(std::ostream &out) const
Definition: generic_fixture.h:145
Definition: enum_description.h:15
generator_ptr & operator=(const generator_ptr< T > &other)
Definition: generic_fixture.h:212
virtual parent_type clone() const =0
abstract_generator(const int test_modifier=0)
Definition: generic_fixture.h:34
virtual void write(std::ostream &out) const =0
T expected
Definition: generic_fixture.h:348
virtual bool advance()
Definition: generic_fixture.h:49
Definition: generic_fixture.h:23
Fixture m_fixture
Definition: generic_fixture.h:152
const ::testing::AssertionResult fixture_test_result
Definition: generic_fixture.h:357
::testing::Message msg
Definition: generic_fixture.h:353
inline::testing::AssertionResult AreValuesNear(const std::vector< float > &expected, const std::vector< float > &actual, const float tol)
Definition: generic_fixture.h:400
T value_type
Definition: generic_fixture.h:336
base_type operator()(const parameter_type ¶meter) const
Definition: generic_fixture.h:117
virtual ~generator_ptr()
Definition: generic_fixture.h:237
const abstract_generator< T > & operator*() const
Definition: generic_fixture.h:243
virtual ~abstract_generator()
Definition: generic_fixture.h:36
::testing::AssertionResult generate(T &expected, T &actual, bool *) const
Definition: generic_fixture.h:127
generator_ptr(const generator_ptr< T > &other)
Definition: generic_fixture.h:198
inline::testing::AssertionResult AreFloatsNear(const float expected, const float actual, const float tol)
Definition: generic_fixture.h:385
virtual ::testing::AssertionResult generate(T &expected, T &actual, bool *skip_test) const =0
abstract_generator< T > * operator->()
Definition: generic_fixture.h:270
generator_ptr< T > generator_type
Definition: generic_fixture.h:334
generator_ptr< T > parent_type
Definition: generic_fixture.h:29
generator_ptr< T > wrap(abstract_generator< T > *ptr)
Definition: generic_fixture.h:315
int test_modifier() const
Definition: generic_fixture.h:63
bool operator!=(const abstract_generator< T > *other)
Definition: generic_fixture.h:289
const abstract_generator< T > * operator->() const
Definition: generic_fixture.h:261
Definition: enums.h:301
Definition: generic_fixture.h:19
abstract_generator< T > & operator*()
Definition: generic_fixture.h:252
std::string info() const
Definition: generic_fixture.h:73
::testing::TestWithParam< generator_ptr< T > > parent_type
Definition: generic_fixture.h:331
int test_modifier
Definition: generic_fixture.h:355
iterator_parameter_generator(const parameter_type parameter)
Definition: generic_fixture.h:167
Definition: generic_fixture.h:159
bool is_float_near(const float expected, const float actual, const float tol)
Definition: generic_fixture.h:367
bool skip_test
Definition: generic_fixture.h:352
bool advance()
Definition: generic_fixture.h:175
generator_ptr & operator=(abstract_generator< T > *ptr)
Definition: generic_fixture.h:230