|
||||
File indexing completed on 2025-01-18 09:54:06
0001 0002 // Copyright Catch2 Authors 0003 // Distributed under the Boost Software License, Version 1.0. 0004 // (See accompanying file LICENSE.txt or copy at 0005 // https://www.boost.org/LICENSE_1_0.txt) 0006 0007 // SPDX-License-Identifier: BSL-1.0 0008 #ifndef CATCH_TEST_FAILURE_EXCEPTION_HPP_INCLUDED 0009 #define CATCH_TEST_FAILURE_EXCEPTION_HPP_INCLUDED 0010 0011 namespace Catch { 0012 0013 //! Used to signal that an assertion macro failed 0014 struct TestFailureException{}; 0015 //! Used to signal that the remainder of a test should be skipped 0016 struct TestSkipException {}; 0017 0018 /** 0019 * Outlines throwing of `TestFailureException` into a single TU 0020 * 0021 * Also handles `CATCH_CONFIG_DISABLE_EXCEPTIONS` for callers. 0022 */ 0023 [[noreturn]] void throw_test_failure_exception(); 0024 0025 /** 0026 * Outlines throwing of `TestSkipException` into a single TU 0027 * 0028 * Also handles `CATCH_CONFIG_DISABLE_EXCEPTIONS` for callers. 0029 */ 0030 [[noreturn]] void throw_test_skip_exception(); 0031 0032 } // namespace Catch 0033 0034 #endif // CATCH_TEST_FAILURE_EXCEPTION_HPP_INCLUDED
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |