userver: userver/utest/assert_macros.hpp File Reference
Loading...
Searching...
No Matches
assert_macros.hpp File Reference

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.

Go to the source code of this file.

#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:

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)