Warning, file /include/boost/beast/_experimental/test/fail_count.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_BEAST_TEST_FAIL_COUNT_HPP
0011 #define BOOST_BEAST_TEST_FAIL_COUNT_HPP
0012
0013 #include <boost/beast/core/detail/config.hpp>
0014 #include <boost/beast/_experimental/test/error.hpp>
0015 #include <cstdlib>
0016
0017 namespace boost {
0018 namespace beast {
0019 namespace test {
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 class fail_count
0032 {
0033 std::size_t n_;
0034 std::size_t i_ = 0;
0035 error_code ec_;
0036
0037 public:
0038 fail_count(fail_count&&) = default;
0039
0040
0041
0042
0043
0044
0045 BOOST_BEAST_DECL
0046 explicit
0047 fail_count(
0048 std::size_t n,
0049 error_code ev = error::test_failure);
0050
0051
0052 BOOST_BEAST_DECL
0053 void
0054 fail();
0055
0056
0057 BOOST_BEAST_DECL
0058 bool
0059 fail(error_code& ec);
0060 };
0061
0062 }
0063 }
0064 }
0065
0066 #ifdef BOOST_BEAST_HEADER_ONLY
0067 #include <boost/beast/_experimental/test/impl/fail_count.ipp>
0068 #endif
0069
0070 #endif