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
You've currently chosen the 1.91.0 version. If a newer release comes out, you will continue to view the 1.91.0 version, not the new latest release.
A countdown to simulated failure.
Defined in header <boost/beast/_experimental/test/fail_count.hpp>
class fail_count
|
Name |
Description |
|---|---|
|
Throw an exception on the Nth failure. |
|
|
fail_count [constructor] |
|
On the Nth operation, the class will fail with the specified error code,
or the default error code of error::test_failure.
Instances of this class may be used to build objects which are specifically
designed to aid in writing unit tests, for interfaces which can throw exceptions
or return error_code values representing failure.