Class test_results
boost::unit_test::test_results — Collection of attributes constituting test unit results.
Synopsis
Description
Этот класс представляет собой набор атрибутов, описывающих результат теста.
Атрибуты представлены как общественные свойства на примере класса. Кроме того, представлены методы краткого заключения, чтобы получить простой ответ на вопрос прохода/выхода
test_results
public
construct/copy/destruct
test_results public member functions
typedef BOOST_READONLY_PROPERTY(counter_t,
(results_collector_t)(test_results)(results_collect_helper));Type representing counter like public property. typedef BOOST_READONLY_PROPERTY(bool,
(results_collector_t)(test_results)(results_collect_helper));Type representing boolean like public property. bool passed() const;
Returns true if test unit passed. int result_code() const;
Produces result code for the test unit execution. This methhod return one of the result codes defined in boost/cstdlib.hpp
Returns: | boost::exit_success on success,
boost::exit_ exception_failure в случае, если испытательное устройство было прервано по какой-либо причине (заявляя неустановленное исключение)
и boost::exit_test_failure в противном случае
|
void operator+=(test_results const &);
Combines the results of the current instance with another. Only the counters are updated and the p_aborted and p_skipped are left unchanged.
void clear();
Resets the current state of the result.