Luanti 5.16.0-dev
Loading...
Searching...
No Matches
TestMapNode Class Reference
Inheritance diagram for TestMapNode:
Collaboration diagram for TestMapNode:

Public Member Functions

 TestMapNode ()
const char * getName ()
void runTests (IGameDef *gamedef)
void testNodeProperties (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

◆ TestMapNode()

TestMapNode::TestMapNode ( )
inline

References TestManager::registerTestModule().

Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestMapNode::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestMapNode::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References IGameDef::getNodeDefManager(), TEST, and testNodeProperties().

Here is the call graph for this function:

◆ testNodeProperties()

void TestMapNode::testNodeProperties ( const NodeDefManager * nodedef)

References CONTENT_AIR, NodeDefManager::get(), MapNode::getContent(), MapNode::getLight(), NodeDefManager::getLightingFlags(), ContentFeatures::light_propagates, LIGHTBANK_DAY, LIGHTBANK_NIGHT, MapNode::setContent(), 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: