src/request_head.cpp
100.0% Lines (41/41)
100.0% List of functions (11/11)
100.0% Branches (1/1)
Functions (11)
Function
Calls
Lines
Branches
Blocks
boost::burl::request_head::request_head()
:20
225x
100.0%
–
100.0%
boost::burl::request_head::~request_head()
:26
225x
100.0%
–
100.0%
boost::burl::request_head::request_head(boost::burl::request_head&&)
:32
7x
100.0%
–
100.0%
boost::burl::request_head::request_head(boost::burl::request_head_base const&)
:39
3x
100.0%
100.0%
80.0%
boost::burl::request_head::request_head(boost::burl::request_head const&)
:46
2x
100.0%
–
100.0%
boost::burl::request_head::operator=(boost::burl::request_head&&)
:53
5x
100.0%
–
100.0%
boost::burl::request_head::operator=(boost::burl::request_head_base const&)
:62
6x
100.0%
–
100.0%
boost::burl::request_head::operator=(boost::burl::request_head const&)
:70
5x
100.0%
–
100.0%
boost::burl::request_head::swap(boost::burl::request_head&)
:77
5x
100.0%
–
100.0%
boost::burl::request_head::reserve(unsigned long, unsigned long)
:84
10x
100.0%
–
100.0%
boost::burl::request_head::shrink_to_fit()
:93
7x
100.0%
–
100.0%
| Line | Branch | TLA | Hits | Source Code |
|---|---|---|---|---|
| 1 | // | |||
| 2 | // Copyright (c) 2021 Vinnie Falco ([email protected]) | |||
| 3 | // Copyright (c) 2026 Mohammad Nejati | |||
| 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/cppalliance/burl | |||
| 9 | // | |||
| 10 | ||||
| 11 | #include <boost/burl/request_head.hpp> | |||
| 12 | ||||
| 13 | #include <utility> | |||
| 14 | ||||
| 15 | namespace boost | |||
| 16 | { | |||
| 17 | namespace burl | |||
| 18 | { | |||
| 19 | ||||
| 20 | 225x | request_head:: | ||
| 21 | 225x | request_head() noexcept | ||
| 22 | 225x | : request_head_base() | ||
| 23 | { | |||
| 24 | 225x | } | ||
| 25 | ||||
| 26 | 225x | request_head:: | ||
| 27 | 225x | ~request_head() | ||
| 28 | { | |||
| 29 | 225x | release_(); | ||
| 30 | 225x | } | ||
| 31 | ||||
| 32 | 7x | request_head:: | ||
| 33 | 7x | request_head(request_head&& other) noexcept | ||
| 34 | 7x | : request_head() | ||
| 35 | { | |||
| 36 | 7x | swap_(other); | ||
| 37 | 7x | } | ||
| 38 | ||||
| 39 | 3x | request_head:: | ||
| 40 | 3x | request_head(request_head_base const& other) | ||
| 41 | 3x | : request_head() | ||
| 42 | { | |||
| 43 |
1/1✓ Branch 1 taken 3 times.
|
3x | request_head_base::operator=(other); | |
| 44 | 3x | } | ||
| 45 | ||||
| 46 | 2x | request_head:: | ||
| 47 | 2x | request_head(request_head const& other) | ||
| 48 | 2x | : request_head(static_cast<request_head_base const&>(other)) | ||
| 49 | { | |||
| 50 | 2x | } | ||
| 51 | ||||
| 52 | request_head& | |||
| 53 | 5x | request_head:: | ||
| 54 | operator=(request_head&& other) noexcept | |||
| 55 | { | |||
| 56 | 5x | request_head tmp(std::move(other)); | ||
| 57 | 5x | swap_(tmp); | ||
| 58 | 10x | return *this; | ||
| 59 | 5x | } | ||
| 60 | ||||
| 61 | request_head& | |||
| 62 | 6x | request_head:: | ||
| 63 | operator=(request_head_base const& other) | |||
| 64 | { | |||
| 65 | 6x | request_head_base::operator=(other); | ||
| 66 | 6x | return *this; | ||
| 67 | } | |||
| 68 | ||||
| 69 | request_head& | |||
| 70 | 5x | request_head:: | ||
| 71 | operator=(request_head const& other) | |||
| 72 | { | |||
| 73 | 5x | return *this = static_cast<request_head_base const&>(other); | ||
| 74 | } | |||
| 75 | ||||
| 76 | void | |||
| 77 | 5x | request_head:: | ||
| 78 | swap(request_head& other) noexcept | |||
| 79 | { | |||
| 80 | 5x | swap_(other); | ||
| 81 | 5x | } | ||
| 82 | ||||
| 83 | void | |||
| 84 | 10x | request_head:: | ||
| 85 | reserve( | |||
| 86 | std::size_t bytes, | |||
| 87 | std::size_t count) | |||
| 88 | { | |||
| 89 | 10x | reserve_(bytes, count); | ||
| 90 | 10x | } | ||
| 91 | ||||
| 92 | void | |||
| 93 | 7x | request_head:: | ||
| 94 | shrink_to_fit() | |||
| 95 | { | |||
| 96 | 7x | shrink_to_fit_(); | ||
| 97 | 7x | } | ||
| 98 | ||||
| 99 | } // namespace burl | |||
| 100 | } // namespace boost | |||
| 101 |