Class test_unit
boost::unit_test::test_unit
Synopsis
class test_unit {
public:
typedef std::vector< test_unit_id > id_list;
typedef std::vector< test_unit_fixture_ptr > fixture_list_t;
typedef std::vector< decorator::base_ptr > decor_list_t;
typedef boost::function< test_tools::assertion_result(test_unit_id)> precondition_t;
enum @0 { type = = TUT_ANY };
enum run_status { RS_DISABLED, RS_ENABLED, RS_INHERIT, RS_INVALID };
test_unit(const_string, const_string, std::size_t, test_unit_type);
explicit test_unit(const_string);
~test_unit();
typedef BOOST_READONLY_PROPERTY(test_unit_id, (framework::state));
typedef BOOST_READONLY_PROPERTY(test_unit_id, (test_suite));
typedef BOOST_READONLY_PROPERTY(id_list, (test_unit));
typedef BOOST_READONLY_PROPERTY(std::vector< std::string >, (test_unit));
typedef BOOST_READONLY_PROPERTY(std::vector< precondition_t >, (test_unit));
void depends_on(test_unit *);
void add_precondition(precondition_t const &);
test_tools::assertion_result check_preconditions() const;
void add_label(const_string);
bool has_label(const_string) const;
void increase_exp_fail(counter_t);
bool is_enabled() const;
std::string full_name() const;
test_unit_type const p_type;
const_string const p_type_name;
const_string const p_file_name;
std::size_t const p_line_num;
id_t p_id;
parent_id_t p_parent_id;
label_list_t p_labels;
id_list_t p_dependencies;
precond_list_t p_preconditions;
readwrite_property< std::string > p_name;
readwrite_property< std::string > p_description;
readwrite_property< unsigned > p_timeout;
readwrite_property< counter_t > p_expected_failures;
readwrite_property< run_status > p_default_status;
readwrite_property< run_status > p_run_status;
readwrite_property< counter_t > p_sibling_rank;
readwrite_property< decor_list_t > p_decorators;
readwrite_property< fixture_list_t > p_fixtures;
};
Description
test_unit
public
construct/copy/destruct
test_unit(const_string tu_name, const_string tc_file, std::size_t tc_line, test_unit_type t>;<429>
explicit test_unit(const_string module_name);
~test_unit();
test_unit
public member functions
typedef BOOST_READONLY_PROPERTY(test_unit_id, (framework:: состояния);
typedef BOOST_READONLY_PROPERTY(test_unit_id, (test_suite);
typedef BOOST_READONLY_PROPERTY(id_list, (test_unit);
typedef BOOST_READONLY_PROPERTY(std::vector< std::string>,>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
typedef BOOST_READONLY_PROPERTY(std::vector< pre condition_t >, >test_unit);
void depends_on(test_unit * tu);
void add_pre condition(pre condition_t const &);
test_tools::assertion_result проверить_прекции()const;
void add_label(const_string l);
bool has_label(const_string l) const;
void увеличение_exp_fail(counter_t num);
bool is_enbled() const;
std::string full_name()const;