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::utest::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 Valkey or Redis fixture
15
///
16
/// Provides access to redis clients by means
17
/// `storages::redis::utest::RedisLocal` class
18
///
19
/// see example:
20
/// @snippet samples/redis_service/unittests/redis_test.cpp Unit test
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 May 13 2025 12:49:39 for userver by
Doxygen
1.13.2