LCOV - code coverage report
Current view: top level - boost/url/detail/string_view.hpp (source / functions) Coverage Total Hit
Test: coverage_filtered.info Lines: 100.0 % 2 2
Test Date: 2024-07-10 02:48:26 Functions: 89.6 % 67 60

            Line data    Source code
       1              : //
       2              : // Copyright (c) 2022 Alan de Freitas (alandefreitas@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/boostorg/url
       8              : //
       9              : 
      10              : #ifndef BOOST_URL_DETAIL_STRING_VIEW_HPP
      11              : #define BOOST_URL_DETAIL_STRING_VIEW_HPP
      12              : 
      13              : #include <boost/core/detail/string_view.hpp>
      14              : 
      15              : namespace boost {
      16              : namespace urls {
      17              : namespace detail {
      18              : 
      19              : // We use detail::to_sv(s) instead of core::string_view(s) whenever
      20              : // we should convert to core::string_view.
      21              : // This is a workaround for GCC >=8.0 <8.4
      22              : // See: https://github.com/boostorg/url/issues/672
      23              : template<class T>
      24              : core::string_view
      25         6725 : to_sv(T const& t) noexcept
      26              : {
      27         6725 :     return core::string_view(t);
      28              : }
      29              : 
      30              : } // detail
      31              : } // urls
      32              : } // boost
      33              : 
      34              : #endif
        

Generated by: LCOV version 2.1