Backing storage for dynamic_config::Source in tests and benchmarks.  
 More...
#include <userver/dynamic_config/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 | 
Backing storage for dynamic_config::Source in tests and benchmarks. 
StorageMock outlives all the acquired pointers! Definition at line 59 of file storage_mock.hpp.
| 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