Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lightweight_test.hpp File Reference
#include <boost/assert.hpp>
#include <boost/current_function.hpp>
#include <boost/core/no_exceptions_support.hpp>
#include <iostream>
Include dependency graph for lightweight_test.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::detail::report_errors_reminder
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::detail
 

Macros

#define BOOST_LIGHTWEIGHT_TEST_OSTREAM   std::cerr
 
#define BOOST_TEST(expr)   ((expr)? (void)0: ::boost::detail::test_failed_impl(#expr, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION))
 
#define BOOST_ERROR(msg)   ( ::boost::detail::error_impl(msg, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION) )
 
#define BOOST_TEST_EQ(expr1, expr2)   ( ::boost::detail::test_eq_impl(#expr1, #expr2, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION, expr1, expr2) )
 
#define BOOST_TEST_NE(expr1, expr2)   ( ::boost::detail::test_ne_impl(#expr1, #expr2, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION, expr1, expr2) )
 
#define BOOST_TEST_THROWS(EXPR, EXCEP)
 

Functions

report_errors_reminder & boost::detail::report_errors_remind ()
 
int & boost::detail::test_errors ()
 
void boost::detail::test_failed_impl (char const *expr, char const *file, int line, char const *function)
 
void boost::detail::error_impl (char const *msg, char const *file, int line, char const *function)
 
void boost::detail::throw_failed_impl (char const *excep, char const *file, int line, char const *function)
 
template<class T , class U >
void boost::detail::test_eq_impl (char const *expr1, char const *expr2, char const *file, int line, char const *function, T const &t, U const &u)
 
template<class T , class U >
void boost::detail::test_ne_impl (char const *expr1, char const *expr2, char const *file, int line, char const *function, T const &t, U const &u)
 
int boost::report_errors ()
 

Macro Definition Documentation

#define BOOST_ERROR (   msg)    ( ::boost::detail::error_impl(msg, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION) )
#define BOOST_TEST_EQ (   expr1,
  expr2 
)    ( ::boost::detail::test_eq_impl(#expr1, #expr2, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION, expr1, expr2) )
#define BOOST_TEST_NE (   expr1,
  expr2 
)    ( ::boost::detail::test_ne_impl(#expr1, #expr2, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION, expr1, expr2) )
#define BOOST_TEST_THROWS (   EXPR,
  EXCEP 
)
Value:
try { \
EXPR; \
(#EXCEP, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION); \
} \
catch(EXCEP const&) { \
} \
catch(...) { \
(#EXCEP, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION); \
} \
#define BOOST_CURRENT_FUNCTION
void throw_failed_impl(char const *excep, char const *file, int line, char const *function)
Definition: lightweight_test.hpp:80