...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::unit_test::results_reporter::format — Results report formatter interface.
// In header: <boost/test/results_reporter.hpp> class format { public: // public member functions virtual ~format(); virtual void results_report_start(std::ostream &) = 0; virtual void results_report_finish(std::ostream &) = 0; virtual void test_unit_report_start(test_unit const &, std::ostream &) = 0; virtual void test_unit_report_finish(test_unit const &, std::ostream &) = 0; virtual void do_confirmation_report(test_unit const &, std::ostream &) = 0; };
This is abstract interface for the report formatter used by results reporter routines. You can define a custom formatter by implementing this interface and setting the formatter using set_format function. This is usually done during test module initialization
format
public member functionsvirtual ~format();
virtual void results_report_start(std::ostream & ostr) = 0;
virtual void results_report_finish(std::ostream & ostr) = 0;
virtual void test_unit_report_start(test_unit const &, std::ostream & ostr) = 0;
virtual void test_unit_report_finish(test_unit const &, std::ostream & ostr) = 0;
virtual void do_confirmation_report(test_unit const &, std::ostream & ostr) = 0;