proxygen
|
#include <folly/lang/Exception.h>
#include <algorithm>
#include <cstring>
#include <string>
#include <folly/Portability.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
class | MyException |
class | ExceptionTest |
Functions | |
template<typename Ex > | |
static std::string | type_pretty_name () |
template<typename Ex > | |
static std::string | message_for_terminate_with (std::string const &what) |
static std::string | message_for_terminate () |
TEST_F (ExceptionTest, throw_exception_direct) | |
TEST_F (ExceptionTest, throw_exception_variadic) | |
TEST_F (ExceptionTest, terminate_with_direct) | |
TEST_F (ExceptionTest, terminate_with_variadic) | |
TEST_F (ExceptionTest, invoke_noreturn_cold) | |
|
static |
Definition at line 51 of file ExceptionTest.cpp.
References folly::kIsGlibcxx, and folly::kIsLibcpp.
Referenced by TEST_F().
|
static |
Definition at line 39 of file ExceptionTest.cpp.
References folly::kIsGlibcxx, folly::kIsLibcpp, name, prefix(), and string.
TEST_F | ( | ExceptionTest | , |
throw_exception_direct | |||
) |
Definition at line 76 of file ExceptionTest.cpp.
References ADD_FAILURE, EXPECT_STREQ, and MyException::what().
TEST_F | ( | ExceptionTest | , |
throw_exception_variadic | |||
) |
Definition at line 85 of file ExceptionTest.cpp.
References ADD_FAILURE, EXPECT_STREQ, and MyException::what().
TEST_F | ( | ExceptionTest | , |
terminate_with_direct | |||
) |
Definition at line 94 of file ExceptionTest.cpp.
TEST_F | ( | ExceptionTest | , |
terminate_with_variadic | |||
) |
Definition at line 100 of file ExceptionTest.cpp.
TEST_F | ( | ExceptionTest | , |
invoke_noreturn_cold | |||
) |
Definition at line 106 of file ExceptionTest.cpp.
References EXPECT_THROW, folly::invoke_noreturn_cold(), and message_for_terminate().
|
static |