Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
TestVoxelManipulator Class Reference
+ Inheritance diagram for TestVoxelManipulator:
+ Collaboration diagram for TestVoxelManipulator:

Public Member Functions

 TestVoxelManipulator ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testVoxelArea ()
 
void testVoxelManipulator (const NodeDefManager *nodedef)
 
- 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
 

Constructor & Destructor Documentation

◆ TestVoxelManipulator()

TestVoxelManipulator::TestVoxelManipulator ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestVoxelManipulator::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestVoxelManipulator::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References IGameDef::getNodeDefManager(), TEST, testVoxelArea(), and testVoxelManipulator().

+ Here is the call graph for this function:

◆ testVoxelArea()

void TestVoxelManipulator::testVoxelArea ( )

References VoxelArea::diff(), VoxelArea::index(), infostream, and UASSERT.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testVoxelManipulator()

void TestVoxelManipulator::testVoxelManipulator ( const NodeDefManager * nodedef)

References VoxelManipulator::addArea(), EXCEPTION_CHECK, VoxelManipulator::getNode(), infostream, VoxelManipulator::print(), VoxelManipulator::setNode(), t_CONTENT_GRASS, and UASSERT.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: