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 |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References fs::DeleteSingleFileOrEmptyDirectory(), DIR_DELIM, TestBase::getTestTempDirectory(), mod_storage_provider, rawstream, fs::RecursiveDelete(), and runTestsForCurrentDB().
void TestModStorageDatabase::runTestsForCurrentDB | ( | ) |
References TEST, testChange(), testCreate(), testListMods(), testRecall(), testRecallChanged(), testRecallFail(), and testRemove().
Referenced by runTests().
void TestModStorageDatabase::testChange | ( | ) |
References mod_storage_provider, ModStorageDatabase::setModEntry(), and UASSERT.
Referenced by runTestsForCurrentDB().
void TestModStorageDatabase::testCreate | ( | ) |
References mod_storage_provider, ModStorageDatabase::setModEntry(), and UASSERT.
Referenced by runTestsForCurrentDB().
void TestModStorageDatabase::testListMods | ( | ) |
References ModStorageDatabase::listMods(), mod_storage_provider, ModStorageDatabase::setModEntry(), UASSERT, and UASSERTCMP.
Referenced by runTestsForCurrentDB().
void TestModStorageDatabase::testRecall | ( | ) |
References ModStorageDatabase::getModEntries(), ModStorageDatabase::getModEntry(), ModStorageDatabase::getModKeys(), ModStorageDatabase::hasModEntry(), mod_storage_provider, UASSERT, and UASSERTCMP.
Referenced by runTestsForCurrentDB().
void TestModStorageDatabase::testRecallChanged | ( | ) |
References ModStorageDatabase::getModEntries(), ModStorageDatabase::getModEntry(), ModStorageDatabase::hasModEntry(), mod_storage_provider, UASSERT, and UASSERTCMP.
Referenced by runTestsForCurrentDB().
void TestModStorageDatabase::testRecallFail | ( | ) |
References ModStorageDatabase::getModEntries(), ModStorageDatabase::getModEntry(), ModStorageDatabase::getModKeys(), ModStorageDatabase::hasModEntry(), mod_storage_provider, and UASSERT.
Referenced by runTestsForCurrentDB().
void TestModStorageDatabase::testRemove | ( | ) |
References mod_storage_provider, ModStorageDatabase::removeModEntries(), ModStorageDatabase::removeModEntry(), and UASSERT.
Referenced by runTestsForCurrentDB().
|
private |
Referenced by runTests(), testChange(), testCreate(), testListMods(), testRecall(), testRecallChanged(), testRecallFail(), and testRemove().