userver
C++ Async Framework
Loading...
Searching...
No Matches
mongo_fixture.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/storages/mongo/utest/mongo_fixture.hpp
4
/// @brief @copybrief storages::mongo::MongoTest
5
6
#
include
<
userver
/
utest
/
utest
.
hpp
>
7
8
#
include
<
userver
/
storages
/
mongo
/
utest
/
mongo_local
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
storages::mongo::utest {
13
14
/// Mongo fixture
15
///
16
/// @brief Provides access to `storages::mongo::Pool` by means
17
/// `storages::mongo::utest::MongoLocal` class
18
///
19
/// see example: userver/samples/mongo_service/unittests
20
// NOLINTNEXTLINE(fuchsia-multiple-inheritance)
21
class
MongoTest
:
public
::testing::Test,
public
MongoLocal
{
22
public
:
23
MongoTest() { GetPool()->DropDatabase(); }
24
};
25
26
}
// namespace storages::mongo::utest
27
28
USERVER_NAMESPACE_END
userver
storages
mongo
utest
mongo_fixture.hpp
Generated on Tue Nov 19 2024 11:31:26 for userver by
Doxygen
1.10.0