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

Public Member Functions

 TestModStorageDatabase ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void runTestsForCurrentDB ()
 
void testRecallFail ()
 
void testCreate ()
 
void testRecall ()
 
void testChange ()
 
void testRecallChanged ()
 
void testListMods ()
 
void testRemove ()
 
- 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)
 

Private Attributes

ModStorageDatabaseProvider * mod_storage_provider
 

Additional Inherited Members

- Public Attributes inherited from TestBase
u32 num_tests_failed
 
u32 num_tests_run
 

Constructor & Destructor Documentation

◆ TestModStorageDatabase()

TestModStorageDatabase::TestModStorageDatabase ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestModStorageDatabase::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestModStorageDatabase::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References fs::DeleteSingleFileOrEmptyDirectory(), DIR_DELIM, TestBase::getTestTempDirectory(), mod_storage_provider, rawstream, fs::RecursiveDelete(), and runTestsForCurrentDB().

+ Here is the call graph for this function:

◆ runTestsForCurrentDB()

void TestModStorageDatabase::runTestsForCurrentDB ( )

References TEST, testChange(), testCreate(), testListMods(), testRecall(), testRecallChanged(), testRecallFail(), and testRemove().

Referenced by runTests().

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

◆ testChange()

void TestModStorageDatabase::testChange ( )

References mod_storage_provider, ModStorageDatabase::setModEntry(), and UASSERT.

Referenced by runTestsForCurrentDB().

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

◆ testCreate()

void TestModStorageDatabase::testCreate ( )

References mod_storage_provider, ModStorageDatabase::setModEntry(), and UASSERT.

Referenced by runTestsForCurrentDB().

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

◆ testListMods()

void TestModStorageDatabase::testListMods ( )

References ModStorageDatabase::listMods(), mod_storage_provider, ModStorageDatabase::setModEntry(), UASSERT, and UASSERTCMP.

Referenced by runTestsForCurrentDB().

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

◆ testRecall()

void TestModStorageDatabase::testRecall ( )

References ModStorageDatabase::getModEntries(), ModStorageDatabase::getModEntry(), ModStorageDatabase::getModKeys(), ModStorageDatabase::hasModEntry(), mod_storage_provider, UASSERT, and UASSERTCMP.

Referenced by runTestsForCurrentDB().

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

◆ testRecallChanged()

void TestModStorageDatabase::testRecallChanged ( )

References ModStorageDatabase::getModEntries(), ModStorageDatabase::getModEntry(), ModStorageDatabase::hasModEntry(), mod_storage_provider, UASSERT, and UASSERTCMP.

Referenced by runTestsForCurrentDB().

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

◆ testRecallFail()

void TestModStorageDatabase::testRecallFail ( )

References ModStorageDatabase::getModEntries(), ModStorageDatabase::getModEntry(), ModStorageDatabase::getModKeys(), ModStorageDatabase::hasModEntry(), mod_storage_provider, and UASSERT.

Referenced by runTestsForCurrentDB().

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

◆ testRemove()

void TestModStorageDatabase::testRemove ( )

References mod_storage_provider, ModStorageDatabase::removeModEntries(), ModStorageDatabase::removeModEntry(), and UASSERT.

Referenced by runTestsForCurrentDB().

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

Member Data Documentation

◆ mod_storage_provider

ModStorageDatabaseProvider* TestModStorageDatabase::mod_storage_provider
private

The documentation for this class was generated from the following file: