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>
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) |