auto_unit_test.hh File Reference

Boost.Test extensions. More...

#include <iostream>
#include "auto_unit_test.ih"
#include <boost/test/auto_unit_test.hpp>
#include <boost/test/test_tools.hpp>
#include "auto_unit_test.cti"
Include dependency graph for auto_unit_test.hh:

Go to the source code of this file.

Namespaces

 senf
 
 senf::test
 

Macros

#define COMPILE_FAIL(n)   void n()
 Check for compile failure. More...
 
#define SENF_CHECK_NO_THROW(expr)
 Show exception information. More...
 
#define SENF_REQUIRE_NO_THROW(expr)
 
#define SENF_CHECK_EQUAL_COLLECTIONS(left_begin, left_end, right_begin, right_end)
 Check ranges for equality, writing char's as int's. More...
 
#define SENF_AUTO_TEST_CASE(name)
 Define new test case. More...
 
#define SENF_CHECK_NOT_EQUAL(Left, Rigth)
 Check for non-equality. More...
 
#define SENF_RETURN_NO_ROOT_PRIVILEGES(msg)
 

Functions

template<class Iterator >
detail::NoCharIterator< Iterator >::type senf::test::nocharIterator (Iterator i)
 

Detailed Description

Boost.Test extensions.

Definition in file auto_unit_test.hh.

Macro Definition Documentation

◆ SENF_REQUIRE_NO_THROW

#define SENF_REQUIRE_NO_THROW (   expr)
Value:
BOOST_REQUIRE_NO_THROW( \
try { expr ; } \
catch (std::exception & e) { std::cerr << e.what() << std::endl; throw; } )

Definition at line 73 of file auto_unit_test.hh.

◆ SENF_RETURN_NO_ROOT_PRIVILEGES

#define SENF_RETURN_NO_ROOT_PRIVILEGES (   msg)
Value:
if (getuid() != 0) { \
BOOST_WARN_MESSAGE(false, msg); \
BOOST_CHECK(true); \
return; \
}

Definition at line 141 of file auto_unit_test.hh.