userver: userver/storages/redis/utest/redis_fixture.hpp Source File
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
10USERVER_NAMESPACE_BEGIN
11
12namespace 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)
22class RedisTest : public ::testing::Test, public RedisLocal {
23public:
24 RedisTest() { FlushDb(); }
25};
26
27} // namespace storages::redis::utest
28
29USERVER_NAMESPACE_END