GCC Code Coverage Report


Directory: libs/url/
File: libs/url/src/segments_view.cpp
Date: 2024-08-19 20:08:56
Exec Total Coverage
Lines: 9 9 100.0%
Functions: 2 2 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 //
2 // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
3 // Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
4 //
5 // Distributed under the Boost Software License, Version 1.0. (See accompanying
6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 //
8 // Official repository: https://github.com/boostorg/url
9 //
10
11
12 #include <boost/url/detail/config.hpp>
13 #include <boost/url/segments_view.hpp>
14 #include <boost/url/parse_path.hpp>
15
16 namespace boost {
17 namespace urls {
18
19 87 segments_view::
20 segments_view(
21 87 detail::path_ref const& ref) noexcept
22 87 : segments_base(ref)
23 {
24 87 }
25
26 19 segments_view::
27 segments_view(
28 19 core::string_view s)
29 : segments_base(
30
2/2
✓ Branch 3 taken 13 times.
✓ Branch 4 taken 6 times.
19 parse_path(s).value(
31 19 BOOST_URL_POS))
32 {
33 13 }
34
35 } // urls
36 } // boost
37
38