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 () |
| 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 |
|
inline |
| 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:
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References TEST, testSerialization(), testSpatialStore(), and testVectorStore().
Here is the call graph for this function:| 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:| void TestAreaStore::testSpatialStore | ( | ) |
References genericStoreTest().
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAreaStore::testVectorStore | ( | ) |
References genericStoreTest().
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function: