MCPcopy Create free account
hub / github.com/OpenMW/openmw / SettingsValuesTest

Class SettingsValuesTest

apps/components_tests/settings/testvalues.cpp:18–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 using namespace testing;
17
18 struct SettingsValuesTest : Test
19 {
20 const std::filesystem::path mSettingsDefaultPath = std::filesystem::path{ OPENMW_PROJECT_SOURCE_DIR }
21 / "files" / Misc::StringUtils::stringToU8String("settings-default.cfg");
22
23 SettingsValuesTest()
24 {
25 Manager::mDefaultSettings.clear();
26 Manager::mUserSettings.clear();
27 Manager::mChangedSettings.clear();
28 SettingsFileParser parser;
29 parser.loadSettingsFile(mSettingsDefaultPath, Manager::mDefaultSettings);
30 }
31 };
32
33 TEST_F(SettingsValuesTest, shouldLoadFromSettingsManager)
34 {

Callers

nothing calls this directly

Calls 1

stringToU8StringFunction · 0.85

Tested by

no test coverage detected