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/utils/invariant_error.hpp>
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  utest
 Mocks and test helpers.
 

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)