Public Member Functions | |
TestMap () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testMaxMapgenLimit () |
void | testForEachNodeInArea (IGameDef *gamedef) |
void | testForEachNodeInAreaBlank (IGameDef *gamedef) |
void | testForEachNodeInAreaEmpty (IGameDef *gamedef) |
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.
|
virtual |
Implements TestBase.
References runTests(), TEST, testForEachNodeInArea(), testForEachNodeInAreaBlank(), testForEachNodeInAreaEmpty(), and testMaxMapgenLimit().
Referenced by runTests().
void TestMap::testForEachNodeInArea | ( | IGameDef * | gamedef | ) |
References CONTENT_AIR, CONTENT_IGNORE, Map::forEachNodeInArea(), MapNode::getContent(), getNodeBlockPos(), p(), Map::setNode(), t_CONTENT_LAVA, t_CONTENT_STONE, t_CONTENT_TORCH, t_CONTENT_WATER, testForEachNodeInArea(), UASSERT, and UASSERTEQ.
Referenced by runTests(), and testForEachNodeInArea().
void TestMap::testForEachNodeInAreaBlank | ( | IGameDef * | gamedef | ) |
References Map::forEachNodeInArea(), Map::getNode(), p(), testForEachNodeInAreaBlank(), and UASSERT.
Referenced by runTests(), and testForEachNodeInAreaBlank().
void TestMap::testForEachNodeInAreaEmpty | ( | IGameDef * | gamedef | ) |
References Map::forEachNodeInArea(), p(), testForEachNodeInAreaEmpty(), and UASSERT.
Referenced by runTests(), and testForEachNodeInAreaEmpty().
void TestMap::testMaxMapgenLimit | ( | ) |
References blockpos_over_max_limit(), BS, MAP_BLOCKSIZE, MAX_MAP_GENERATION_LIMIT, objectpos_over_limit(), testMaxMapgenLimit(), UASSERT, and UASSERTEQ.
Referenced by runTests(), and testMaxMapgenLimit().