ADTF
Loading...
Searching...
No Matches
catch_integration.h File Reference
#include <a_utils.h>
#include <catch2/catch.hpp>
Include dependency graph for catch_integration.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Catch::StringMaker< tResult >
 
struct  Catch::StringMaker< tError< Code > >
 
struct  Catch::StringMaker< adtf::util::cString >
 
struct  Catch::StringMaker< adtf::util::cFilename >
 

Namespaces

namespace  Catch
 Namespace for all functionality provided by catch2 integration in adtf::testing.
 

Macros

#define REQUIRE_OK(...)
 Macro for a mandatory check if a function call returned with ERR_NOERROR. If not the test will fail and the error will be printed.
 
#define REQUIRE_FAILED(...)
 Macro for a mandatory check if a function call did not return with ERR_NOERROR. If it did the test will fail and the error will be printed.
 
#define CHECK_OK(...)
 Macro to check if a function call returned with ERR_NOERROR. If not the test will fail and the error will be printed.
 
#define CHECK_FAILED(...)
 Macro to check if a function call did not return with ERR_NOERROR. If it did the test will fail and the error will be printed.
 

Functions

 CATCH_TRANSLATE_EXCEPTION (const tResult &oError)
 

Detailed Description

Copyright © Audi Electronics Venture GmbH. All rights reserved

Macro Definition Documentation

◆ CHECK_FAILED

#define CHECK_FAILED ( ...)
Value:
CHECK(tResult(ERR_NOERROR) != __VA_ARGS__)
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736

Macro to check if a function call did not return with ERR_NOERROR. If it did the test will fail and the error will be printed.

Parameters
...function call that returns a tResult or tError.

◆ CHECK_OK

#define CHECK_OK ( ...)
Value:
CHECK(tResult(ERR_NOERROR) == __VA_ARGS__)

Macro to check if a function call returned with ERR_NOERROR. If not the test will fail and the error will be printed.

Parameters
...function call that returns a tResult or tError.

◆ REQUIRE_FAILED

#define REQUIRE_FAILED ( ...)
Value:
REQUIRE(tResult(ERR_NOERROR) != __VA_ARGS__)

Macro for a mandatory check if a function call did not return with ERR_NOERROR. If it did the test will fail and the error will be printed.

Parameters
...function call that returns a tResult or tError.

◆ REQUIRE_OK

#define REQUIRE_OK ( ...)
Value:
REQUIRE(tResult(ERR_NOERROR) == __VA_ARGS__)

Macro for a mandatory check if a function call returned with ERR_NOERROR. If not the test will fail and the error will be printed.

Parameters
...function call that returns a tResult or tError.