userver
C++ Async Framework
Loading...
Searching...
No Matches
redis_fixture.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/storages/redis/utest/redis_fixture.hpp
4
/// @brief @copybrief storages::redis::RedisTest
5
6
#
include
<
userver
/
utest
/
utest
.
hpp
>
7
8
#
include
<
userver
/
storages
/
redis
/
utest
/
redis_local
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
storages::
redis
::utest {
13
14
/// @brief Redis fixture
15
///
16
/// Provides access to redis clients by means
17
/// `storages::redis::utest::RedisLocal` class
18
///
19
/// see example:
20
/// @snippet userver/samples/redis_service/unittests
21
// NOLINTNEXTLINE(fuchsia-multiple-inheritance)
22
class
RedisTest
:
public
::testing::Test,
public
RedisLocal
{
23
public
:
24
RedisTest() {
FlushDb
(); }
25
};
26
27
}
// namespace storages::redis::utest
28
29
USERVER_NAMESPACE_END
userver
storages
redis
utest
redis_fixture.hpp
Generated on Tue Nov 19 2024 11:32:57 for userver by
Doxygen
1.10.0