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

Public Member Functions

 TestNodeResolver ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testNodeResolving (NodeDefManager *ndef)
 
void testPendingResolveCancellation (NodeDefManager *ndef)
 
void testDirectResolveMethod (NodeDefManager *ndef)
 
void testNoneResolveMethod (NodeDefManager *ndef)
 
- 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

◆ TestNodeResolver()

TestNodeResolver::TestNodeResolver ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestNodeResolver::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestNodeResolver::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References IGameDef::getNodeDefManager(), NodeDefManager::resetNodeResolveState(), TEST, testNodeResolving(), and testPendingResolveCancellation().

+ Here is the call graph for this function:

◆ testDirectResolveMethod()

void TestNodeResolver::testDirectResolveMethod ( NodeDefManager * ndef)

◆ testNodeResolving()

void TestNodeResolver::testNodeResolving ( NodeDefManager * ndef)

References CONTAINS, CONTENT_AIR, CONTENT_IGNORE, NodeResolver::m_ndef, NodeResolver::m_nnlistsizes, NodeResolver::m_nodenames, NodeDefManager::pendNodeResolve(), NodeDefManager::runNodeResolveCallbacks(), NodeDefManager::setNodeRegistrationStatus(), t_CONTENT_BRICK, t_CONTENT_GRASS, t_CONTENT_LAVA, t_CONTENT_STONE, t_CONTENT_TORCH, t_CONTENT_WATER, Foobar::test_nr_list, Foobar::test_nr_list_empty, Foobar::test_nr_list_group, Foobar::test_nr_list_required, Foobar::test_nr_node1, Foobar::test_nr_node2, Foobar::test_nr_node3, Foobar::test_nr_node4, Foobar::test_nr_node5, UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testNoneResolveMethod()

void TestNodeResolver::testNoneResolveMethod ( NodeDefManager * ndef)

◆ testPendingResolveCancellation()

void TestNodeResolver::testPendingResolveCancellation ( NodeDefManager * ndef)

References NodeDefManager::cancelNodeResolveCallback(), CONTENT_IGNORE, NodeResolver::m_nodenames, NodeDefManager::pendNodeResolve(), NodeDefManager::runNodeResolveCallbacks(), NodeDefManager::setNodeRegistrationStatus(), t_CONTENT_GRASS, Foobaz::test_content1, Foobaz::test_content2, 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: