ConfigMock.cpp 316 B

12345678910111213141516
  1. #include "../include/Config.h"
  2. namespace Config {
  3. std::map<std::string, std::string> storage;
  4. };
  5. bool Config::init(const std::string &filename) { return true; }
  6. std::string Config::getValue(const std::string &key) {
  7. auto it = storage.find(key);
  8. if (it != storage.end()) {
  9. return it->second;
  10. }
  11. return "";
  12. }