userver: userver/dynamic_config/impl/test_helpers.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
test_helpers.hpp
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include <userver/dynamic_config/source.hpp>
7#include <userver/dynamic_config/storage_mock.hpp>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace dynamic_config::impl {
12
13// Internal function, use dynamic_config::GetDefaultSource() instead
14dynamic_config::Source GetDefaultSource(const std::string& filename);
15
16// Internal function, use dynamic_config::GetDefaultSnapshot() instead
17const dynamic_config::Snapshot& GetDefaultSnapshot(const std::string& filename);
18
19// Internal function, use dynamic_config::MakeDefaultStorage() instead
20dynamic_config::StorageMock MakeDefaultStorage(
21 const std::string& filename,
22 const std::vector<dynamic_config::KeyValue>& overrides);
23
24// Internal function, use dynamic_config::GetDefaultSnapshot() instead
25const dynamic_config::DocsMap& GetDefaultDocsMap(const std::string& filename);
26
27} // namespace dynamic_config::impl
28
29USERVER_NAMESPACE_END