![]() |
cipra
1.2.1
A C++11 Unit Testing Framework based on Test::More
|
Manages the test numbers in test output. More...
#include <counter.hpp>
Inheritance diagram for cipra::counter< integralT >:
Collaboration diagram for cipra::counter< integralT >:Public Types | |
|
typedef std::make_unsigned < integralT >::type | index_type |
The index type of the counter. The actual index type is going to be the unsigned counterpart of the template parameter T. | |
Public Member Functions | |
| counter () | |
| Initializes the atomic counter. More... | |
| index_type | new_test_number () |
| Returns a unique test number. More... | |
Manages the test numbers in test output.
Guarantees that each test has a different number, even if multiple threads are testing at the same time.
| integralT | The type that the test numbers should have. This must be a POD integer type. The actual return value will be the unsigned counterpart of this type if it is not already unsigned. |
|
inline |
Initializes the atomic counter.
|
inline |
Returns a unique test number.
1.8.4