File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/ystdlib/error_handling Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,17 @@ auto capture_exception(Callable&& f) -> ystdlib::error_handling::TraceableExcept
6666}
6767} // namespace
6868
69+ #include < iostream>
70+
6971TEST_CASE (" test_traceable_exception_success" , " [error_handling][TraceableException]" ) {
7072 auto const success_exception{capture_exception (Worker::execute_with_success)};
7173 std::error_code const success_error_code{BinaryErrorCode{BinaryErrorCodeEnum::Success}};
7274 REQUIRE ((success_error_code.category () == success_exception.error_code ().category ()));
7375 REQUIRE ((success_error_code.value () == success_exception.error_code ().value ()));
7476 REQUIRE ((cSuccessErrorMsg == success_exception.error_code ().message ()));
77+ std::cout << " A:" << cExecuteWithSuccessFunctionName << std::endl;
78+ std::cout << " B:" << success_exception.what () << std::endl;
79+ std::cout << " C:" << success_exception.function_name () << std::endl;
7580 REQUIRE ((cExecuteWithSuccessFunctionName == std::string_view{success_exception.what ()}));
7681 REQUIRE ((cExecuteWithSuccessFunctionName == success_exception.function_name ()));
7782 REQUIRE ((cExecuteWithSuccessLineNumber == success_exception.line ()));
You can’t perform that action at this time.
0 commit comments