Public Member Functions | |
TestBan () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
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 Member Functions | |
void | testCreate () |
void | testAdd () |
void | testRemove () |
void | testModificationFlag () |
void | testGetBanName () |
void | testGetBanDescription () |
void | reinitTestEnv () |
Private Attributes | |
std::string | m_testbm |
std::string | m_testbm2 |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
private |
References fs::DeleteSingleFileOrEmptyDirectory(), DIR_DELIM, TestBase::getTestTempDirectory(), m_testbm, and m_testbm2.
Referenced by runTests().
|
virtual |
Implements TestBase.
References reinitTestEnv(), TEST, testAdd(), testCreate(), testGetBanDescription(), testGetBanName(), testModificationFlag(), and testRemove().
|
private |
References BanManager::add(), BanManager::getBanName(), m_testbm, and UASSERT.
Referenced by runTests().
|
private |
References fs::IsFile(), m_testbm, m_testbm2, BanManager::save(), and UASSERT.
Referenced by runTests().
|
private |
References BanManager::add(), BanManager::getBanDescription(), m_testbm, and UASSERT.
Referenced by runTests().
|
private |
References BanManager::add(), BanManager::getBanName(), m_testbm, and UASSERT.
Referenced by runTests().
|
private |
References BanManager::add(), BanManager::isModified(), m_testbm, BanManager::remove(), BanManager::save(), and UASSERT.
Referenced by runTests().
|
private |
References BanManager::add(), BanManager::getBanName(), m_testbm, BanManager::remove(), and UASSERT.
Referenced by runTests().
|
private |
Referenced by reinitTestEnv(), testAdd(), testCreate(), testGetBanDescription(), testGetBanName(), testModificationFlag(), and testRemove().
|
private |
Referenced by reinitTestEnv(), and testCreate().