GCC Code Coverage Report


Directory: libs/url/
File: libs/url/src/detail/vformat.cpp
Date: 2024-08-20 16:05:55
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 4 4 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
11 #include <boost/url/detail/config.hpp>
12 #include <boost/url/detail/vformat.hpp>
13 #include "pattern.hpp"
14
15 namespace boost {
16 namespace urls {
17 namespace detail {
18
19 void
20 147 vformat_to(
21 url_base& u,
22 core::string_view fmt,
23 detail::format_args args)
24 {
25 147 parse_pattern(fmt)
26
4/4
✓ Branch 2 taken 140 times.
✓ Branch 3 taken 7 times.
✓ Branch 5 taken 136 times.
✓ Branch 6 taken 4 times.
147 .value().apply(u, args);
27 136 }
28
29
30 } // detail
31 } // urls
32 } // boost
33
34