src/static_response_head.cpp
100.0% Lines (15/15)
100.0% List of functions (4/4)
-% Branches (0/0)
Functions (4)
Function
Calls
Lines
Blocks
boost::burl::static_response_head::static_response_head(char*, unsigned long)
:18
7x
100.0%
100.0%
boost::burl::static_response_head::static_response_head(boost::burl::static_response_head&&)
:27
1x
100.0%
100.0%
boost::burl::static_response_head::operator=(boost::burl::response_head_base const&)
:35
5x
100.0%
100.0%
boost::burl::static_response_head::operator=(boost::burl::static_response_head const&)
:43
2x
100.0%
100.0%
| Line | 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/static_response_head.hpp> | ||
| 12 | |||
| 13 | namespace boost | ||
| 14 | { | ||
| 15 | namespace burl | ||
| 16 | { | ||
| 17 | |||
| 18 | 7x | static_response_head:: | |
| 19 | static_response_head( | ||
| 20 | char* storage, | ||
| 21 | 7x | std::size_t n) | |
| 22 | 7x | : response_head_base() | |
| 23 | { | ||
| 24 | 7x | init_static_(storage, n); | |
| 25 | 6x | } | |
| 26 | |||
| 27 | 1x | static_response_head:: | |
| 28 | 1x | static_response_head(static_response_head&& other) noexcept | |
| 29 | 1x | : response_head_base() | |
| 30 | { | ||
| 31 | 1x | swap_(other); | |
| 32 | 1x | } | |
| 33 | |||
| 34 | static_response_head& | ||
| 35 | 5x | static_response_head:: | |
| 36 | operator=(response_head_base const& other) | ||
| 37 | { | ||
| 38 | 5x | response_head_base::operator=(other); | |
| 39 | 2x | return *this; | |
| 40 | } | ||
| 41 | |||
| 42 | static_response_head& | ||
| 43 | 2x | static_response_head:: | |
| 44 | operator=(static_response_head const& other) | ||
| 45 | { | ||
| 46 | 2x | return *this = static_cast<response_head_base const&>(other); | |
| 47 | } | ||
| 48 | |||
| 49 | } // namespace burl | ||
| 50 | } // namespace boost | ||
| 51 |