75.00% Lines (6/8)
75.00% Functions (3/4)
| TLA | Baseline | Branch | ||||||
|---|---|---|---|---|---|---|---|---|
| Line | Hits | Code | Line | Hits | Code | |||
| 1 | // | 1 | // | |||||
| 2 | // Copyright (c) 2025 Vinnie Falco (vinnie.falco@gmail.com) | 2 | // Copyright (c) 2025 Vinnie Falco (vinnie.falco@gmail.com) | |||||
| 3 | // | 3 | // | |||||
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | 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) | 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |||||
| 6 | // | 6 | // | |||||
| 7 | // Official repository: https://github.com/cppalliance/corosio | 7 | // Official repository: https://github.com/cppalliance/corosio | |||||
| 8 | // | 8 | // | |||||
| 9 | 9 | |||||||
| 10 | #include <boost/corosio/detail/except.hpp> | 10 | #include <boost/corosio/detail/except.hpp> | |||||
| 11 | #include <stdexcept> | 11 | #include <stdexcept> | |||||
| 12 | 12 | |||||||
| 13 | namespace boost::corosio::detail { | 13 | namespace boost::corosio::detail { | |||||
| 14 | 14 | |||||||
| 15 | void | 15 | void | |||||
| MISUBC | 16 | ✗ | throw_logic_error() | 16 | ✗ | throw_logic_error() | ||
| 17 | { | 17 | { | |||||
| MISUBC | 18 | ✗ | throw std::logic_error("logic error"); | 18 | ✗ | throw std::logic_error("logic error"); | ||
| 19 | } | 19 | } | |||||
| 20 | 20 | |||||||
| 21 | void | 21 | void | |||||
| HITCBC | 22 | 7 | throw_logic_error(char const* what) | 22 | 7 | throw_logic_error(char const* what) | ||
| 23 | { | 23 | { | |||||
| HITCBC | 24 | 7 | throw std::logic_error(what); | 24 | 7 | throw std::logic_error(what); | ||
| 25 | } | 25 | } | |||||
| 26 | 26 | |||||||
| 27 | void | 27 | void | |||||
| HITCBC | 28 | 15 | throw_system_error(std::error_code const& ec) | 28 | 15 | throw_system_error(std::error_code const& ec) | ||
| 29 | { | 29 | { | |||||
| HITCBC | 30 | 15 | throw std::system_error(ec); | 30 | 15 | throw std::system_error(ec); | ||
| 31 | } | 31 | } | |||||
| 32 | 32 | |||||||
| 33 | void | 33 | void | |||||
| HITCBC | 34 | 18 | throw_system_error(std::error_code const& ec, char const* what) | 34 | 18 | throw_system_error(std::error_code const& ec, char const* what) | ||
| 35 | { | 35 | { | |||||
| HITCBC | 36 | 18 | throw std::system_error(ec, what); | 36 | 18 | throw std::system_error(ec, what); | ||
| 37 | } | 37 | } | |||||
| 38 | 38 | |||||||
| 39 | } // namespace boost::corosio::detail | 39 | } // namespace boost::corosio::detail | |||||