| 1 | // |
|---|---|
| 2 | // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) |
| 3 | // |
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 6 | // |
| 7 | // Official repository: https://github.com/boostorg/beast |
| 8 | // |
| 9 | |
| 10 | #ifndef BOOST_BEAST_TEST_ERROR_HPP |
| 11 | #define BOOST_BEAST_TEST_ERROR_HPP |
| 12 | |
| 13 | #include <boost/beast/core/detail/config.hpp> |
| 14 | #include <boost/beast/core/error.hpp> |
| 15 | |
| 16 | namespace boost { |
| 17 | namespace beast { |
| 18 | namespace test { |
| 19 | |
| 20 | /// Error codes returned from unit testing algorithms |
| 21 | enum class error |
| 22 | { |
| 23 | /** The test stream generated a simulated testing error |
| 24 | |
| 25 | This error is returned by a @ref fail_count object |
| 26 | when it generates a simulated error. |
| 27 | */ |
| 28 | test_failure = 1 |
| 29 | }; |
| 30 | |
| 31 | } // test |
| 32 | } // beast |
| 33 | } // boost |
| 34 | |
| 35 | #include <boost/beast/_experimental/test/impl/error.hpp> |
| 36 | #ifdef BOOST_BEAST_HEADER_ONLY |
| 37 | #include <boost/beast/_experimental/test/impl/error.ipp> |
| 38 | #endif |
| 39 | |
| 40 | #endif |
| 41 |
