GCC Code Coverage Report


Directory: libs/buffers/
File: libs/buffers/src/detail/except.cpp
Date: 2024-07-24 21:34:17
Exec Total Coverage
Lines: 6 6 100.0%
Functions: 2 2 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 //
2 // Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.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/cppalliance/buffers
8 //
9
10 #include <boost/buffers/detail/except.hpp>
11 #include <boost/version.hpp>
12 #include <boost/throw_exception.hpp>
13 #include <stdexcept>
14
15 namespace boost {
16 namespace buffers {
17 namespace detail {
18
19 void
20 6 throw_invalid_argument(
21 source_location const& loc)
22 {
23 6 throw_exception(
24 12 std::invalid_argument(
25 "invalid argument"), loc);
26 }
27
28 void
29 1 throw_length_error(
30 source_location const& loc)
31 {
32 1 throw_exception(
33 2 std::length_error(
34 "length error"), loc);
35 }
36
37 } // detail
38 } // buffers
39 } // boost
40