#include <gtest/gtest.h>
#include <rapidcheck/gtest.h>
#include <rapidcheck/gen/Arbitrary.hpp>
Go to the source code of this file.
|
using | rc::detail::MakeTestParams = TestParams (*)() |
|
|
template<typename Testable> |
void | rc::detail::checkGTestWith (Testable &&testable, MakeTestParams makeTestParams) |
|
Implements the ability to run a RapidCheck test under gtest with changed test parameters such as the number of tests to run. This is useful for running very large numbers of the extremely cheap property tests.
◆ RC_GTEST_PROP_WITH_PARAMS
#define RC_GTEST_PROP_WITH_PARAMS |
( |
| TestCase, |
|
|
| Name, |
|
|
| MakeParams, |
|
|
| ArgList ) |
Value: void rapidCheck_propImpl_##TestCase##_##Name ArgList; \
\
TEST(TestCase, Name) \
{ \
::rc::detail::checkGTestWith(&rapidCheck_propImpl_##TestCase##_##Name, MakeParams); \
} \
\
void rapidCheck_propImpl_##TestCase##_##Name ArgList