LCOV - code coverage report
Current view: top level - libs/url/src/segments_encoded_view.cpp (source / functions) Coverage Total Hit
Test: coverage_filtered.info Lines: 100.0 % 11 11
Test Date: 2024-08-19 20:08:54 Functions: 100.0 % 3 3

            Line data    Source code
       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_encoded_view.hpp>
      14              : #include <boost/url/parse_path.hpp>
      15              : 
      16              : namespace boost {
      17              : namespace urls {
      18              : 
      19          834 : segments_encoded_view::
      20              : segments_encoded_view(
      21          834 :     detail::path_ref const& ref) noexcept
      22          834 :     : segments_encoded_base(ref)
      23              : {
      24          834 : }
      25              : 
      26          106 : segments_encoded_view::
      27              : segments_encoded_view(
      28          106 :     core::string_view s)
      29              :     : segments_encoded_view(
      30          106 :         parse_path(s).value(
      31            6 :             BOOST_URL_POS))
      32              : {
      33          100 : }
      34              : 
      35           41 : segments_encoded_view::
      36              : operator
      37              : segments_view() const noexcept
      38              : {
      39           41 :     return { ref_ };
      40              : }
      41              : 
      42              : } // urls
      43              : } // boost
      44              : 
        

Generated by: LCOV version 2.1