updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
@ -26,14 +26,15 @@ template <typename T, typename U>
|
|||||||
constexpr bool is_decay_equ = std::is_same_v<std::decay_t<T>, U>;
|
constexpr bool is_decay_equ = std::is_same_v<std::decay_t<T>, U>;
|
||||||
|
|
||||||
TEST(utils_error, check_default_exception_handler) {
|
TEST(utils_error, check_default_exception_handler) {
|
||||||
EXPECT_EQ(&utils::error::default_exception_handler,
|
EXPECT_TRUE(utils::error::get_exception_handler() != nullptr);
|
||||||
utils::error::get_exception_handler());
|
if (&utils::error::default_exception_handler ==
|
||||||
|
utils::error::get_exception_handler()) {
|
||||||
auto default_handler_is_iostream =
|
auto default_handler_is_iostream =
|
||||||
is_decay_equ<decltype(utils::error::default_exception_handler),
|
is_decay_equ<decltype(utils::error::default_exception_handler),
|
||||||
utils::error::iostream_exception_handler>;
|
utils::error::iostream_exception_handler>;
|
||||||
EXPECT_TRUE(default_handler_is_iostream);
|
EXPECT_TRUE(default_handler_is_iostream);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TEST(utils_error, can_override_exception_handler) {
|
TEST(utils_error, can_override_exception_handler) {
|
||||||
struct my_exc_handler : public utils::error::i_exception_handler {
|
struct my_exc_handler : public utils::error::i_exception_handler {
|
||||||
|
Reference in New Issue
Block a user