
Your opinion will help to improve our service
Leave a feedback >#include <userver/dynamic_config/storage_mock.hpp>
Backing storage for dynamic_config::Source in tests and benchmarks.
StorageMock outlives all the acquired pointers! Definition at line 68 of file storage_mock.hpp.
Public Member Functions | |
| StorageMock () | |
Create an empty StorageMock | |
| StorageMock (std::initializer_list< KeyValue > config_variables) | |
| StorageMock (const std::vector< KeyValue > &config_variables) | |
Only store config_variables in the Config | |
| StorageMock (const DocsMap &defaults, const std::vector< KeyValue > &overrides) | |
Store overrides in the Config, then parse all the remaining variables from defaults | |
| StorageMock (StorageMock &&) noexcept | |
| StorageMock & | operator= (StorageMock &&) noexcept |
| void | Extend (const std::vector< KeyValue > &overrides) |
| Update some config variables. | |
| Source | GetSource () const & |
| Snapshot | GetSnapshot () const & |
| Snapshot | GetSource () &&=delete |
| Snapshot | GetSnapshot () &&=delete |
| dynamic_config::StorageMock::StorageMock | ( | std::initializer_list< KeyValue > | config_variables | ) |
Only store config_variables in the Config. Use as: StorageMock{{kVariableKey1, value1}, {kVariableKey2, value2}}
| dynamic_config::StorageMock::StorageMock | ( | const DocsMap & | defaults, |
| const std::vector< KeyValue > & | overrides ) |
Store overrides in the Config, then parse all the remaining variables from defaults