Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function current_test_case_id

boost::unit_test::framework::current_test_case_id — This function provides an access to an id of the test case currently being executed.

Synopsis

// In header: <boost/test/framework.hpp>


test_unit_id current_test_case_id();

Description

This function safer than current_test_case, cause if wont throw if no test case is being executed.

See Also:

current_test_case


PrevUpHomeNext