#include "catch_interfaces_generatortracker.h"
#include "catch_common.h"
#include "catch_enforce.h"
#include <memory>
#include <vector>
#include <cassert>
#include <utility>
#include <exception>
Go to the source code of this file.
|
template<typename T , typename... Args> |
std::unique_ptr< T > | Catch::Generators::pf::make_unique (Args &&... args) |
|
template<typename T > |
GeneratorWrapper< T > | Catch::Generators::value (T &&value) |
|
template<typename T > |
GeneratorWrapper< T > | Catch::Generators::values (std::initializer_list< T > values) |
|
template<typename... Ts> |
GeneratorWrapper< std::tuple< Ts... > > | Catch::Generators::table (std::initializer_list< std::tuple< typename std::decay< Ts >::type... > > tuples) |
|
template<typename T , typename... Gs> |
auto | Catch::Generators::makeGenerators (GeneratorWrapper< T > &&generator, Gs... moreGenerators) -> Generators< T > |
|
template<typename T > |
auto | Catch::Generators::makeGenerators (GeneratorWrapper< T > &&generator) -> Generators< T > |
|
template<typename T , typename... Gs> |
auto | Catch::Generators::makeGenerators (T &&val, Gs... moreGenerators) -> Generators< T > |
|
template<typename T , typename U , typename... Gs> |
auto | Catch::Generators::makeGenerators (as< T >, U &&val, Gs... moreGenerators) -> Generators< T > |
|
auto | Catch::Generators::acquireGeneratorTracker (SourceLineInfo const &lineInfo) -> IGeneratorTracker & |
|
template<typename L > |
auto | Catch::Generators::generate (SourceLineInfo const &lineInfo, L const &generatorExpression) -> decltype(std::declval< decltype(generatorExpression())>().get()) |
|
◆ GENERATE
Value:
#define CATCH_INTERNAL_LINEINFO
auto generate(SourceLineInfo const &lineInfo, L const &generatorExpression) -> decltype(std::declval< decltype(generatorExpression())>().get())
Definition at line 203 of file catch_generators.hpp.
203#define GENERATE( ... ) \
204 Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [ ]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
◆ GENERATE_COPY
#define GENERATE_COPY |
( |
| ... | ) |
|
Value:
Definition at line 205 of file catch_generators.hpp.
205#define GENERATE_COPY( ... ) \
206 Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [=]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
◆ GENERATE_REF
#define GENERATE_REF |
( |
| ... | ) |
|
Value:
Definition at line 207 of file catch_generators.hpp.
207#define GENERATE_REF( ... ) \
208 Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [&]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )