Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
gtest-with-params.hh File Reference
#include <gtest/gtest.h>
#include <rapidcheck/gtest.h>
#include <rapidcheck/gen/Arbitrary.hpp>

Go to the source code of this file.

Macros

#define RC_GTEST_PROP_WITH_PARAMS(TestCase, Name, MakeParams, ArgList)
 

Typedefs

using rc::detail::MakeTestParams = TestParams (*)()
 

Functions

template<typename Testable>
void rc::detail::checkGTestWith (Testable &&testable, MakeTestParams makeTestParams)
 

Detailed Description

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.

Macro Definition Documentation

◆ 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