Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
TestAreaStore Class Reference
+ Inheritance diagram for TestAreaStore:
+ Collaboration diagram for TestAreaStore:

Public Member Functions

 TestAreaStore ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void genericStoreTest (AreaStore *store)
 
void testVectorStore ()
 
void testSpatialStore ()
 
void testSerialization ()
 
- Public Member Functions inherited from TestBase
bool testModule (IGameDef *gamedef)
 
std::string getTestTempDirectory ()
 
std::string getTestTempFile ()
 
virtual void runTests (IGameDef *gamedef)=0
 
virtual const char * getName ()=0
 
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

◆ TestAreaStore()

TestAreaStore::TestAreaStore ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ genericStoreTest()

void TestAreaStore::genericStoreTest ( AreaStore store)

References Area::data, AreaStore::getAreasForPos(), AreaStore::getAreasInArea(), Area::id, AreaStore::insertArea(), AreaStore::removeArea(), AreaStore::reserve(), AreaStore::size(), UASSERT, and UASSERTEQ.

Referenced by testSpatialStore(), and testVectorStore().

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

◆ getName()

const char * TestAreaStore::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestAreaStore::runTests ( IGameDef gamedef)
virtual

Implements TestBase.

References TEST, testSerialization(), testSpatialStore(), and testVectorStore().

+ Here is the call graph for this function:

◆ testSerialization()

void TestAreaStore::testSerialization ( )

References Area::data, AreaStore::deserialize(), Area::id, VectorAreaStore::insertArea(), AreaStore::serialize(), AreaStore::size(), and UASSERTEQ.

Referenced by runTests().

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

◆ testSpatialStore()

void TestAreaStore::testSpatialStore ( )

References genericStoreTest().

Referenced by runTests().

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

◆ testVectorStore()

void TestAreaStore::testVectorStore ( )

References genericStoreTest().

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: