Public Member Functions | |
TestSettings () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testAllSettings () |
void | testDefaults () |
void | testFlagDesc () |
Public Member Functions inherited from TestBase | |
bool | testModule (IGameDef *gamedef) |
std::string | getTestTempDirectory () |
std::string | getTestTempFile () |
void | runTest (const char *name, std::function< void()> &&test) |
Static Public Attributes | |
static const char * | config_text_before |
static const char * | config_text_after |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References TEST, testAllSettings(), testDefaults(), and testFlagDesc().
void TestSettings::testAllSettings | ( | ) |
References compare_settings(), config_text_after, config_text_before, Settings::get(), Settings::getEntry(), Settings::getFloat(), Settings::getGroup(), Settings::getGroupNoEx(), Settings::getNoiseParams(), Settings::getS16(), Settings::getS32(), Settings::getV3F(), SettingsEntry::is_group, NoiseParams::octaves, NoiseParams::offset, Settings::parseConfigLines(), NoiseParams::persist, NoiseParams::scale, NoiseParams::seed, Settings::set(), Settings::setFloat(), Settings::setGroup(), Settings::setNoiseParams(), Settings::setS16(), Settings::setV3F(), NoiseParams::spread, UASSERT, and Settings::updateConfigObject().
Referenced by runTests().
void TestSettings::testDefaults | ( | ) |
References Settings::createLayer(), Settings::get(), Settings::getLayer(), Settings::set(), set_default_settings(), SL_DEFAULTS, SL_GAME, and UASSERT.
Referenced by runTests().
void TestSettings::testFlagDesc | ( | ) |
References Settings::createLayer(), Settings::getFlagStr(), readFlagString(), Settings::set(), Settings::setDefault(), SL_GAME, and UASSERT.
Referenced by runTests().
|
static |
Referenced by testAllSettings().
|
static |
Referenced by testAllSettings().