userver
C++ Async Framework
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
Toggle main menu visibility
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
All results
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
Docs version:
v1.0
,
v2.0
,
trunk/develop
userver
storages
mongo
utest
mongo_fixture.hpp
Generated on Tue Dec 24 2024 19:11:53 for userver by
Doxygen
1.10.0