userver
C++ Async Framework
Toggle main menu visibility
Documentation
API Groups
Namespaces
Reference
Class List
Class Index
File List
Macros
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
statistics_mock.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/cache/statistics_mock.hpp
4
/// @brief @copybrief cache::UpdateStatisticsScopeMock
5
6
#
include
<
userver
/
cache
/
cache_statistics
.
hpp
>
7
#
include
<
userver
/
cache
/
update_type
.
hpp
>
8
9
USERVER_NAMESPACE_BEGIN
10
11
namespace
cache
{
12
13
/// @brief Allows to test helper functions of CacheUpdateTrait::Update that use
14
/// UpdateStatisticsScope
15
class
UpdateStatisticsScopeMock
final
{
16
public
:
17
explicit
UpdateStatisticsScopeMock(
UpdateType
type);
18
19
UpdateStatisticsScope& GetScope();
20
21
private
:
22
impl::Statistics stats_;
23
UpdateStatisticsScope scope_;
24
};
15
class
UpdateStatisticsScopeMock
final
{
…
};
25
26
}
// namespace cache
27
28
USERVER_NAMESPACE_END
userver
cache
statistics_mock.hpp
Generated on Wed Apr 30 2025 15:55:40 for userver by
Doxygen
1.13.2