| 214 | } |
| 215 | |
| 216 | inline std::string loadSettingsFile(const IApplicationContext& context, const std::string& applicationVersion, const std::string& relativeFilePath) |
| 217 | { |
| 218 | settings::SettingsManager manager(context, applicationVersion); |
| 219 | auto existingFile = manager.getExistingSettingsFile(relativeFilePath); |
| 220 | |
| 221 | if (existingFile.empty()) return {}; |
| 222 | |
| 223 | return algorithm::loadFileToString(existingFile); |
| 224 | } |
| 225 | |
| 226 | // Checks that the version/base settings folders are respecting the version sort order |
| 227 | TEST(SettingsManagerTest, SettingsFileVersionPrecedence) |
no test coverage detected