![]() |
|
|||
File indexing completed on 2025-09-18 09:06:42
0001 // (C) Copyright Gennadiy Rozental 2001. 0002 // Distributed under the Boost Software License, Version 1.0. 0003 // (See accompanying file LICENSE_1_0.txt or copy at 0004 // http://www.boost.org/LICENSE_1_0.txt) 0005 0006 // See http://www.boost.org/libs/test for the library home page. 0007 // 0008 // File : $RCSfile$ 0009 // 0010 // Version : $Revision: 74248 $ 0011 // 0012 // Description : toolbox implementation types and forward declarations 0013 // *************************************************************************** 0014 0015 #ifndef BOOST_TEST_TOOLS_DETAIL_FWD_HPP_012705GER 0016 #define BOOST_TEST_TOOLS_DETAIL_FWD_HPP_012705GER 0017 0018 // Boost.Test 0019 #include <boost/test/detail/config.hpp> 0020 #include <boost/test/utils/basic_cstring/io.hpp> 0021 0022 // STL 0023 #include <cstddef> // for std::size_t 0024 0025 #include <boost/test/detail/suppress_warnings.hpp> 0026 0027 //____________________________________________________________________________// 0028 0029 namespace boost { 0030 namespace unit_test { 0031 0032 class lazy_ostream; 0033 0034 } // namespace unit_test 0035 0036 namespace test_tools { 0037 0038 using unit_test::const_string; 0039 class assertion_result; 0040 0041 //____________________________________________________________________________// 0042 0043 namespace tt_detail { 0044 0045 // ************************************************************************** // 0046 // ************** types of supported assertions ************** // 0047 // ************************************************************************** // 0048 0049 //____________________________________________________________________________// 0050 0051 enum check_type { 0052 CHECK_PRED, 0053 CHECK_MSG, 0054 CHECK_EQUAL, 0055 CHECK_NE, 0056 CHECK_LT, 0057 CHECK_LE, 0058 CHECK_GT, 0059 CHECK_GE, 0060 CHECK_CLOSE, 0061 CHECK_CLOSE_FRACTION, 0062 CHECK_SMALL, 0063 CHECK_BITWISE_EQUAL, 0064 CHECK_PRED_WITH_ARGS, 0065 CHECK_EQUAL_COLL, 0066 CHECK_BUILT_ASSERTION 0067 }; 0068 0069 //____________________________________________________________________________// 0070 0071 // ************************************************************************** // 0072 // ************** levels of supported assertions ************** // 0073 // ************************************************************************** // 0074 0075 enum tool_level { 0076 WARN, CHECK, REQUIRE, PASS 0077 }; 0078 0079 //____________________________________________________________________________// 0080 0081 // ************************************************************************** // 0082 // ************** Tools offline implementation ************** // 0083 // ************************************************************************** // 0084 0085 BOOST_TEST_DECL bool 0086 report_assertion( assertion_result const& pr, unit_test::lazy_ostream const& assertion_descr, 0087 const_string file_name, std::size_t line_num, 0088 tool_level tl, check_type ct, 0089 std::size_t num_args, ... ); 0090 0091 //____________________________________________________________________________// 0092 0093 BOOST_TEST_DECL assertion_result 0094 format_assertion_result( const_string expr_val, const_string details ); 0095 0096 //____________________________________________________________________________// 0097 0098 BOOST_TEST_DECL assertion_result 0099 format_fpc_report( const_string expr_val, const_string details ); 0100 0101 //____________________________________________________________________________// 0102 0103 BOOST_TEST_DECL bool 0104 is_defined_impl( const_string symbol_name, const_string symbol_value ); 0105 0106 //____________________________________________________________________________// 0107 0108 BOOST_TEST_DECL assertion_result 0109 equal_impl( char const* left, char const* right ); 0110 0111 //____________________________________________________________________________// 0112 0113 } // namespace tt_detail 0114 } // namespace test_tools 0115 } // namespace boost 0116 0117 #include <boost/test/detail/enable_warnings.hpp> 0118 0119 #endif // BOOST_TEST_TOOLS_DETAIL_FWD_HPP_012705GER
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |