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

Public Member Functions

 TestDataStructures ()
const char * getName ()
void runTests (IGameDef *gamedef)
void testMap1 ()
void testMap2 ()
void testMap3 ()
void testMap4 ()
void testMap5 ()
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

◆ TestDataStructures()

TestDataStructures::TestDataStructures ( )
inline

References TestManager::registerTestModule().

Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestDataStructures::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestDataStructures::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References rawstream, TEST, testMap1(), testMap2(), testMap3(), testMap4(), and testMap5().

Here is the call graph for this function:

◆ testMap1()

void TestDataStructures::testMap1 ( )

References ModifySafeMap< K, V >::clear(), ModifySafeMap< K, V >::iter(), ModifySafeMap< K, V >::put(), and UASSERT.

Referenced by runTests().

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

◆ testMap2()

void TestDataStructures::testMap2 ( )

References ModifySafeMap< K, V >::clear(), ModifySafeMap< K, V >::put(), and UASSERT.

Referenced by runTests().

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

◆ testMap3()

void TestDataStructures::testMap3 ( )

References ModifySafeMap< K, V >::iter(), ModifySafeMap< K, V >::put(), ModifySafeMap< K, V >::remove(), ModifySafeMap< K, V >::take(), and UASSERT.

Referenced by runTests().

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

◆ testMap4()

void TestDataStructures::testMap4 ( )

References ModifySafeMap< K, V >::get(), ModifySafeMap< K, V >::iter(), ModifySafeMap< K, V >::put(), ModifySafeMap< K, V >::size(), ModifySafeMap< K, V >::take(), UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testMap5()

void TestDataStructures::testMap5 ( )

References ModifySafeMap< K, V >::get(), ModifySafeMap< K, V >::iter(), ModifySafeMap< K, V >::put(), and UASSERTEQ.

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: