Inheritance diagram for TestMapSettingsManager:
Collaboration diagram for TestMapSettingsManager:Public Member Functions | |
| TestMapSettingsManager () | |
| const char * | getName () |
| void | makeUserConfig () |
| std::string | makeMetaFile (bool make_corrupt) |
| void | runTests (IGameDef *gamedef) |
| void | testMapSettingsManager () |
| void | testMapMetaSaveLoad () |
| void | testMapMetaFailures () |
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) |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
| u32 | num_tests_failed |
| u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
| std::string TestMapSettingsManager::makeMetaFile | ( | bool | make_corrupt | ) |
References TestBase::getTestTempFile(), and UASSERT.
Referenced by testMapMetaFailures(), and testMapSettingsManager().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestMapSettingsManager::makeUserConfig | ( | ) |
References Settings::createLayer(), Settings::getLayer(), Settings::set(), and SL_GLOBAL.
Referenced by testMapMetaSaveLoad(), and testMapSettingsManager().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements TestBase.
References TEST, testMapMetaFailures(), testMapMetaSaveLoad(), and testMapSettingsManager().
Here is the call graph for this function:| void TestMapSettingsManager::testMapMetaFailures | ( | ) |
References MapSettingsManager::loadMapMeta(), makeMetaFile(), fs::PathExists(), and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestMapSettingsManager::testMapMetaSaveLoad | ( | ) |
References MapgenParams::bparams, DIR_DELIM, Settings::getLayer(), TestBase::getTestTempDirectory(), MapSettingsManager::loadMapMeta(), MapSettingsManager::makeMapgenParams(), makeUserConfig(), MapSettingsManager::saveMapMeta(), MapgenParams::seed, Settings::set(), SL_GLOBAL, UASSERT, UASSERTEQ, and MapgenParams::water_level.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestMapSettingsManager::testMapSettingsManager | ( | ) |
References check_noise_params(), MapgenParams::chunksize, MapgenParams::flags, Settings::getLayer(), MapSettingsManager::getMapSetting(), MapSettingsManager::getNoiseParams(), MapSettingsManager::loadMapMeta(), MapSettingsManager::makeMapgenParams(), makeMetaFile(), makeUserConfig(), MapSettingsManager::mapgen_params, MAPGEN_V5, MG_LIGHT, MapgenParams::mgtype, NOISE_FLAG_EASED, MapgenV5Params::np_factor, MapgenV5Params::np_filler_depth, MapgenV5Params::np_ground, MapgenV5Params::np_height, fs::ReadFile(), MapSettingsManager::saveMapMeta(), MapgenParams::seed, MapSettingsManager::setMapSetting(), MapSettingsManager::setMapSettingNoiseParams(), hashing::sha1(), SL_GLOBAL, UASSERT, and MapgenParams::water_level.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function: