Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch.hpp File Reference
Include dependency graph for catch.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CATCH_VERSION_MAJOR   2
 
#define CATCH_VERSION_MINOR   7
 
#define CATCH_VERSION_PATCH   2
 
#define REQUIRE(...)
 
#define REQUIRE_FALSE(...)
 
#define REQUIRE_THROWS(...)
 
#define REQUIRE_THROWS_AS(expr, exceptionType)
 
#define REQUIRE_THROWS_WITH(expr, matcher)
 
#define REQUIRE_THROWS_MATCHES(expr, exceptionType, matcher)
 
#define REQUIRE_NOTHROW(...)
 
#define CHECK(...)
 
#define CHECK_FALSE(...)
 
#define CHECKED_IF(...)
 
#define CHECKED_ELSE(...)
 
#define CHECK_NOFAIL(...)
 
#define CHECK_THROWS(...)
 
#define CHECK_THROWS_AS(expr, exceptionType)
 
#define CHECK_THROWS_WITH(expr, matcher)
 
#define CHECK_THROWS_MATCHES(expr, exceptionType, matcher)
 
#define CHECK_NOTHROW(...)
 
#define CHECK_THAT(arg, matcher)
 
#define REQUIRE_THAT(arg, matcher)
 
#define INFO(msg)
 
#define UNSCOPED_INFO(msg)
 
#define WARN(msg)
 
#define CAPTURE(...)
 
#define TEST_CASE(...)
 
#define TEST_CASE_METHOD(className, ...)
 
#define METHOD_AS_TEST_CASE(method, ...)
 
#define REGISTER_TEST_CASE(Function, ...)
 
#define SECTION(...)
 
#define DYNAMIC_SECTION(...)
 
#define FAIL(...)
 
#define FAIL_CHECK(...)
 
#define SUCCEED(...)
 
#define ANON_TEST_CASE()
 
#define TEMPLATE_TEST_CASE(...)
 
#define TEMPLATE_TEST_CASE_METHOD(className, ...)
 
#define TEMPLATE_PRODUCT_TEST_CASE(...)
 
#define TEMPLATE_PRODUCT_TEST_CASE_METHOD(className, ...)
 
#define STATIC_REQUIRE(...)
 
#define STATIC_REQUIRE_FALSE(...)
 
#define CATCH_TRANSLATE_EXCEPTION(signature)
 
#define SCENARIO(...)
 
#define SCENARIO_METHOD(className, ...)
 
#define GIVEN(desc)
 
#define AND_GIVEN(desc)
 
#define WHEN(desc)
 
#define AND_WHEN(desc)
 
#define THEN(desc)
 
#define AND_THEN(desc)
 

Macro Definition Documentation

◆ AND_GIVEN

#define AND_GIVEN ( desc)
Value:
INTERNAL_CATCH_DYNAMIC_SECTION( "And given: " << desc )
#define INTERNAL_CATCH_DYNAMIC_SECTION(...)

Definition at line 263 of file catch.hpp.

◆ AND_THEN

#define AND_THEN ( desc)
Value:
INTERNAL_CATCH_DYNAMIC_SECTION( " And: " << desc )

Definition at line 267 of file catch.hpp.

◆ AND_WHEN

#define AND_WHEN ( desc)
Value:
INTERNAL_CATCH_DYNAMIC_SECTION( " And when: " << desc )

Definition at line 265 of file catch.hpp.

◆ ANON_TEST_CASE

#define ANON_TEST_CASE ( )
Value:
#define INTERNAL_CATCH_TESTCASE(...)

Definition at line 231 of file catch.hpp.

◆ CAPTURE

#define CAPTURE ( ...)
Value:
INTERNAL_CATCH_CAPTURE( INTERNAL_CATCH_UNIQUE_NAME(capturer), "CAPTURE",__VA_ARGS__ )
#define INTERNAL_CATCH_CAPTURE(varName, macroName,...)
#define INTERNAL_CATCH_UNIQUE_NAME(name)

Definition at line 220 of file catch.hpp.

◆ CATCH_TRANSLATE_EXCEPTION

#define CATCH_TRANSLATE_EXCEPTION ( signature)
Value:
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION(signature)

Definition at line 256 of file catch.hpp.

◆ CATCH_VERSION_MAJOR

#define CATCH_VERSION_MAJOR   2

Definition at line 12 of file catch.hpp.

◆ CATCH_VERSION_MINOR

#define CATCH_VERSION_MINOR   7

Definition at line 13 of file catch.hpp.

◆ CATCH_VERSION_PATCH

#define CATCH_VERSION_PATCH   2

Definition at line 14 of file catch.hpp.

◆ CHECK

#define CHECK ( ...)
Value:
#define INTERNAL_CATCH_TEST(macroName, resultDisposition,...)

Definition at line 196 of file catch.hpp.

◆ CHECK_FALSE

#define CHECK_FALSE ( ...)

◆ CHECK_NOFAIL

#define CHECK_NOFAIL ( ...)

◆ CHECK_NOTHROW

#define CHECK_NOTHROW ( ...)
Value:
#define INTERNAL_CATCH_NO_THROW(macroName, resultDisposition,...)

Definition at line 208 of file catch.hpp.

◆ CHECK_THAT

#define CHECK_THAT ( arg,
matcher )
Value:
#define INTERNAL_CHECK_THAT(macroName, matcher, resultDisposition, arg)

Definition at line 212 of file catch.hpp.

◆ CHECK_THROWS

#define CHECK_THROWS ( ...)
Value:
#define INTERNAL_CATCH_THROWS(macroName, resultDisposition,...)

Definition at line 202 of file catch.hpp.

◆ CHECK_THROWS_AS

#define CHECK_THROWS_AS ( expr,
exceptionType )
Value:
#define INTERNAL_CATCH_THROWS_AS(macroName, exceptionType, resultDisposition, expr)

Definition at line 203 of file catch.hpp.

◆ CHECK_THROWS_MATCHES

#define CHECK_THROWS_MATCHES ( expr,
exceptionType,
matcher )
Value:
INTERNAL_CATCH_THROWS_MATCHES( "CHECK_THROWS_MATCHES", exceptionType, Catch::ResultDisposition::ContinueOnFailure, matcher, expr )
#define INTERNAL_CATCH_THROWS_MATCHES(macroName, exceptionType, resultDisposition, matcher,...)

Definition at line 206 of file catch.hpp.

◆ CHECK_THROWS_WITH

#define CHECK_THROWS_WITH ( expr,
matcher )
Value:
#define INTERNAL_CATCH_THROWS_STR_MATCHES(macroName, resultDisposition, matcher,...)

Definition at line 204 of file catch.hpp.

◆ CHECKED_ELSE

#define CHECKED_ELSE ( ...)
Value:
#define INTERNAL_CATCH_ELSE(macroName, resultDisposition,...)

Definition at line 199 of file catch.hpp.

◆ CHECKED_IF

#define CHECKED_IF ( ...)
Value:
#define INTERNAL_CATCH_IF(macroName, resultDisposition,...)

Definition at line 198 of file catch.hpp.

◆ DYNAMIC_SECTION

#define DYNAMIC_SECTION ( ...)
Value:

Definition at line 227 of file catch.hpp.

◆ FAIL

#define FAIL ( ...)
Value:
#define INTERNAL_CATCH_MSG(macroName, messageType, resultDisposition,...)

Definition at line 228 of file catch.hpp.

◆ FAIL_CHECK

#define FAIL_CHECK ( ...)
Value:

Definition at line 229 of file catch.hpp.

◆ GIVEN

#define GIVEN ( desc)
Value:
INTERNAL_CATCH_DYNAMIC_SECTION( " Given: " << desc )

Definition at line 262 of file catch.hpp.

◆ INFO

#define INFO ( msg)
Value:
INTERNAL_CATCH_INFO( "INFO", msg )
#define INTERNAL_CATCH_INFO(macroName, log)

Definition at line 217 of file catch.hpp.

◆ METHOD_AS_TEST_CASE

#define METHOD_AS_TEST_CASE ( method,
... )
Value:
INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, __VA_ARGS__ )
#define INTERNAL_CATCH_METHOD_AS_TEST_CASE(QualifiedMethod,...)

Definition at line 224 of file catch.hpp.

◆ REGISTER_TEST_CASE

#define REGISTER_TEST_CASE ( Function,
... )
Value:
INTERNAL_CATCH_REGISTER_TESTCASE( Function, __VA_ARGS__ )
#define INTERNAL_CATCH_REGISTER_TESTCASE(Function,...)

Definition at line 225 of file catch.hpp.

◆ REQUIRE

#define REQUIRE ( ...)
Value:

Definition at line 185 of file catch.hpp.

◆ REQUIRE_FALSE

#define REQUIRE_FALSE ( ...)
Value:

Definition at line 186 of file catch.hpp.

◆ REQUIRE_NOTHROW

#define REQUIRE_NOTHROW ( ...)
Value:

Definition at line 194 of file catch.hpp.

◆ REQUIRE_THAT

#define REQUIRE_THAT ( arg,
matcher )
Value:
INTERNAL_CHECK_THAT( "REQUIRE_THAT", matcher, Catch::ResultDisposition::Normal, arg )

Definition at line 214 of file catch.hpp.

◆ REQUIRE_THROWS

#define REQUIRE_THROWS ( ...)
Value:

Definition at line 188 of file catch.hpp.

◆ REQUIRE_THROWS_AS

#define REQUIRE_THROWS_AS ( expr,
exceptionType )
Value:
INTERNAL_CATCH_THROWS_AS( "REQUIRE_THROWS_AS", exceptionType, Catch::ResultDisposition::Normal, expr )

Definition at line 189 of file catch.hpp.

◆ REQUIRE_THROWS_MATCHES

#define REQUIRE_THROWS_MATCHES ( expr,
exceptionType,
matcher )
Value:
INTERNAL_CATCH_THROWS_MATCHES( "REQUIRE_THROWS_MATCHES", exceptionType, Catch::ResultDisposition::Normal, matcher, expr )

Definition at line 192 of file catch.hpp.

◆ REQUIRE_THROWS_WITH

#define REQUIRE_THROWS_WITH ( expr,
matcher )
Value:

Definition at line 190 of file catch.hpp.

◆ SCENARIO

#define SCENARIO ( ...)
Value:
TEST_CASE( "Scenario: " __VA_ARGS__ )
#define TEST_CASE(...)
Definition catch.hpp:222

Definition at line 259 of file catch.hpp.

◆ SCENARIO_METHOD

#define SCENARIO_METHOD ( className,
... )
Value:
INTERNAL_CATCH_TEST_CASE_METHOD( className, "Scenario: " __VA_ARGS__ )
#define INTERNAL_CATCH_TEST_CASE_METHOD(ClassName,...)

Definition at line 260 of file catch.hpp.

◆ SECTION

#define SECTION ( ...)
Value:
INTERNAL_CATCH_SECTION( __VA_ARGS__ )
#define INTERNAL_CATCH_SECTION(...)

Definition at line 226 of file catch.hpp.

◆ STATIC_REQUIRE

#define STATIC_REQUIRE ( ...)
Value:
static_assert( __VA_ARGS__, #__VA_ARGS__ ); SUCCEED( #__VA_ARGS__ )
#define SUCCEED(...)
Definition catch.hpp:230

Definition at line 247 of file catch.hpp.

◆ STATIC_REQUIRE_FALSE

#define STATIC_REQUIRE_FALSE ( ...)
Value:
static_assert( !(__VA_ARGS__), "!(" #__VA_ARGS__ ")" ); SUCCEED( "!(" #__VA_ARGS__ ")" )

Definition at line 248 of file catch.hpp.

◆ SUCCEED

#define SUCCEED ( ...)

◆ TEMPLATE_PRODUCT_TEST_CASE

#define TEMPLATE_PRODUCT_TEST_CASE ( ...)
Value:
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE(Name, Tags,...)

Definition at line 236 of file catch.hpp.

◆ TEMPLATE_PRODUCT_TEST_CASE_METHOD

#define TEMPLATE_PRODUCT_TEST_CASE_METHOD ( className,
... )
Value:
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD(ClassName, Name, Tags,...)

Definition at line 237 of file catch.hpp.

◆ TEMPLATE_TEST_CASE

#define TEMPLATE_TEST_CASE ( ...)
Value:
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE(Name, Tags,...)

Definition at line 234 of file catch.hpp.

◆ TEMPLATE_TEST_CASE_METHOD

#define TEMPLATE_TEST_CASE_METHOD ( className,
... )
Value:
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD(ClassName, Name, Tags,...)

Definition at line 235 of file catch.hpp.

◆ TEST_CASE

#define TEST_CASE ( ...)
Value:

Definition at line 222 of file catch.hpp.

◆ TEST_CASE_METHOD

#define TEST_CASE_METHOD ( className,
... )
Value:
INTERNAL_CATCH_TEST_CASE_METHOD( className, __VA_ARGS__ )

Definition at line 223 of file catch.hpp.

◆ THEN

#define THEN ( desc)
Value:
INTERNAL_CATCH_DYNAMIC_SECTION( " Then: " << desc )

Definition at line 266 of file catch.hpp.

◆ UNSCOPED_INFO

#define UNSCOPED_INFO ( msg)
Value:
INTERNAL_CATCH_UNSCOPED_INFO( "UNSCOPED_INFO", msg )
#define INTERNAL_CATCH_UNSCOPED_INFO(macroName, log)

Definition at line 218 of file catch.hpp.

◆ WARN

#define WARN ( msg)

◆ WHEN

#define WHEN ( desc)
Value:
INTERNAL_CATCH_DYNAMIC_SECTION( " When: " << desc )

Definition at line 264 of file catch.hpp.