userver: userver/utest/assert_macros.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
assert_macros.hpp File Reference

Extensions to the gtest macros for printing and testing exceptions that could work even without coroutine environment. More...

#include <exception>
#include <functional>
#include <string>
#include <string_view>
#include <type_traits>
#include <typeinfo>
#include <gtest/gtest.h>
#include <userver/utest/death_tests.hpp>
#include <userver/utest/impl/assert_macros.hpp>
#include <userver/utils/invariant_error.hpp>
+ Include dependency graph for assert_macros.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UEXPECT_THROW_MSG(statement, exception_type, message_substring)
 
#define UASSERT_THROW_MSG(statement, exception_type, message_substring)
 
#define UEXPECT_THROW(statement, exception_type)
 
#define UASSERT_THROW(statement, exception_type)
 
#define UEXPECT_NO_THROW(statement)
 
#define UASSERT_NO_THROW(statement)
 
#define EXPECT_UINVARIANT_FAILURE(statement)
 

Detailed Description

Extensions to the gtest macros for printing and testing exceptions that could work even without coroutine environment.

Definition in file assert_macros.hpp.