#if !defined(IUTEST_BUILD_FOR_IWYU)
#include "../include/iutest.hpp"
#if IUTEST_HAS_PARAM_TEST
{
protected:
static int a;
static int b;
public:
{
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:
{
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:
{
a = 0;
}
};
int TestPValueIn::a = 0;
{
}
{
}
{
protected:
static int a;
public:
{
a = 1;
}
};
int TestPValuesN::a = 1;
IUTEST_INSTANTIATE_TEST_SUITE_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
#endif
テストベース
Definition: iutest_body.hpp:44
static void SetUpTestSuite()
test suite setup
Definition: iutest_body.hpp:172
パラメータテストベース
Definition: iutest_body.hpp:301
パラメータテストインターフェース
Definition: iutest_body.hpp:248
#define IUTEST_ASSERT_EQ(expected, actual)
== テスト
Definition: iutest.hpp:308
#define IUTEST_ASSERT_FLOAT_EQ(expected, actual)
float の比較 テスト
Definition: iutest.hpp:428
#define IUTEST_EXPECT_EQ(expected, actual)
== テスト
Definition: iutest.hpp:719
#define IUTEST_SUCCEED()
明示的な成功
Definition: iutest.hpp:202
#define IUTEST_FAIL()
明示的な失敗
Definition: iutest.hpp:211
detail::AnyMatcher< T > A()
Make Any matcher
Definition: iutest_matcher.hpp:2604
detail::iuParamGenerator< bool > IUTEST_ATTRIBUTE_UNUSED_ Bool()
真偽値パラメータ
Definition: iutest_param_tests.hpp:413
detail::iuConcatParamHolder< Generator1, Generator2 > Concat(const Generator1 &g1, const Generator2 &g2)
値配列パラメータ
Definition: iutest_param_tests.hpp:578
detail::iuParamGenerator< typename Container::value_type > IUTEST_ATTRIBUTE_UNUSED_ ValuesIn(Container container)
値配列パラメータ
Definition: iutest_param_tests.hpp:462
detail::iuRandomParamsHolder IUTEST_ATTRIBUTE_UNUSED_ RandomValues(size_t num, unsigned int seed=0)
乱数値パラメータ
Definition: iutest_param_tests.hpp:452
detail::iuParamGenerator< T > IUTEST_ATTRIBUTE_UNUSED_ Range(T begin, T end, T step=static_cast< T >(1))
範囲パラメータ
Definition: iutest_param_tests.hpp:405
#define IUTEST_PMZ_F(testfixture_, testname_, method_,...)
パラメタライズ関数コールテスト定義マクロ
Definition: iutest.hpp:104
#define IUTEST_P(testfixture_, testname_)
パラメータユーザー指定テスト関数定義マクロ
Definition: iutest_param_tests.hpp:62
#define IUTEST_INSTANTIATE_TEST_SUITE_P(prefix_, testfixture_, generator_,...)
パラメータテストインスタンス化マクロ
Definition: iutest_param_tests.hpp:44
#define IUTEST_PMZ(testsuite_, testname_, method_,...)
パラメタライズ関数コールテスト定義マクロ
Definition: iutest.hpp:92