...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_collector_t — This class implements test observer interface to collect the result of test unit execution.
// In header: <boost/test/results_collector.hpp> class results_collector_t : public test_observer, public singleton< results_collector_t > { public: // public member functions virtual void test_start(counter_t); virtual void test_unit_start(test_unit const &); virtual void test_unit_finish(test_unit const &, unsigned); virtual void test_unit_skipped(test_unit const &, const_string); virtual void test_unit_aborted(test_unit const &); virtual void assertion_result(unit_test::assertion_result); virtual void exception_caught(execution_exception const &); virtual int priority(); test_results const & results(test_unit_id) const; };
results_collector_t
public member functionsvirtual void test_start(counter_t test_cases_amount);
virtual void test_unit_start(test_unit const &);
virtual void test_unit_finish(test_unit const &, unsigned long);
virtual void test_unit_skipped(test_unit const &, const_string);
virtual void test_unit_aborted(test_unit const &);
virtual void assertion_result(unit_test::assertion_result);
virtual void exception_caught(execution_exception const &);
virtual int priority();
test_results const & results(test_unit_id tu_id) const;Results access per test unit.
Parameters: |
|