GCC Code Coverage Report


Directory: libs/url/
File: boost/url/detail/vformat.hpp
Date: 2024-03-13 19:32:03
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
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_FORMAT_HPP
11 #define BOOST_URL_DETAIL_FORMAT_HPP
12
13 #include <boost/url/detail/format_args.hpp>
14 #include <boost/core/detail/string_view.hpp>
15 #include <boost/url/url.hpp>
16
17 namespace boost {
18 namespace urls {
19 namespace detail {
20
21 BOOST_URL_DECL
22 void
23 vformat_to(
24 url_base& u,
25 core::string_view fmt,
26 detail::format_args args);
27
28 inline
29 url
30 143 vformat(
31 core::string_view fmt,
32 detail::format_args args)
33 {
34 143 url u;
35
2/2
✓ Branch 1 taken 133 times.
✓ Branch 2 taken 10 times.
143 vformat_to(u, fmt, args);
36 133 return u;
37 }
38
39 } // detail
40 } // url
41 } // boost
42
43 #endif
44