#include "../include/iutest.hpp"
#if IUTEST_HAS_PARAM_TEST
{
protected:
static int a;
static int b;
public:
static void SetUpTestCase()
{
a = 0;
b = 0;
}
};
int TestP::a = 0;
int TestP::b = 0;
#if IUTEST_HAS_CONCAT
#endif
{
++a;
}
{
++b;
}
{
protected:
static int a;
static int b;
public:
static void SetUpTestCase()
{
a = 0;
b = 0;
}
};
int TestPIBase::a = 0;
int TestPIBase::b = 0;
{
++a;
}
{
++b;
}
{
static bool x=false;
x = !x;
}
const char ValueInTestText[] = "ValueInTestText";
{
protected:
static int a;
public:
static void SetUpTestCase()
{
a = 0;
}
};
int TestPValueIn::a = 0;
{
}
{
}
{
protected:
static int a;
public:
static void SetUpTestCase()
{
a = 1;
}
};
int TestPValuesN::a = 1;
IUTEST_INSTANTIATE_TEST_CASE_P(TestPValuesNInstance, TestPValuesN, ::iutest::Values(1, 2, 3, 4, 5, 6, 7, 8, 9
));
{
}
#if IUTEST_HAS_AUTOFIXTURE_PARAM_TEST && !defined(IUTEST_USE_GTEST)
{
}
#endif
#if IUTEST_HAS_COMBINE
{
};
{
bool b = ::iutest::tuples::get<0>(GetParam());
int i1 = ::iutest::tuples::get<1>(GetParam());
int i2 = ::iutest::tuples::get<2>(GetParam());
#if !defined(IUTEST_USE_GTEST)
#endif
}
, ::iutest::Combine( ::
iutest::Bool(), ::iutest::Values(1, 2), ::iutest::Values(10, 11) ) );
#endif
#if IUTEST_HAS_INITIALIZER_LIST && !defined(IUTEST_USE_GTEST)
IUTEST_P(InitializerListValuesTest, Test)
{
int v = GetParam();
}
#endif
#if IUTEST_HAS_RANDOMVALUES
{
int v = GetParam();
}
#endif
#if IUTEST_HAS_CSVPARAMS
{
int v = GetParam();
}
#endif
#endif
#if IUTEST_HAS_PARAM_METHOD_TEST
void TestFunction(int x, int y)
{
}
IUTEST_PMZ(ParamMethodTest, EQ, TestFunction, 0, 0);
IUTEST_PMZ(ParamMethodTest, EQ, TestFunction, 1, 1);
IUTEST_PMZ(ParamMethodTest, EQ, TestFunction, 2, 2);
#endif
{
};
typedef TestPFailure DISABLED_TestPFailure;
{
int v = GetParam();
}
#if IUTEST_HAS_PARAM_METHOD_TEST
IUTEST_PMZ(DISABLED_TestFailureParamMethod, EQ, TestFunction, 0, 0);
IUTEST_PMZ(DISABLED_TestFailureParamMethod, EQ, TestFunction, 1, 2);
IUTEST_PMZ(DISABLED_TestFailureParamMethod, EQ, TestFunction, 2, 2);
typedef ParamMethodTestFixed DISABLED_TestFailureParamMethodFixed;
IUTEST_PMZ_F(DISABLED_TestFailureParamMethodFixed, EQ, TestFunction, 0, 0);
IUTEST_PMZ_F(DISABLED_TestFailureParamMethodFixed, EQ, TestFunction, 1, 1);
IUTEST_PMZ_F(DISABLED_TestFailureParamMethodFixed, EQ, TestFunction, 2, 3);
#endif