Public Member Functions | |
TestServerModManager () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testCreation () |
void | testIsConsistent () |
void | testUnsatisfiedMods () |
void | testGetMods () |
void | testGetModsWrongDir () |
void | testGetModspec () |
void | testGetModNamesWrongDir () |
void | testGetModNames () |
void | testGetModMediaPathsWrongDir () |
void | testGetModMediaPaths () |
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) |
Public Attributes | |
std::string | m_worlddir |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References fs::CreateAllDirs(), fs::CreateDir(), DIR_DELIM, findSubgame(), TestBase::getTestTempDirectory(), m_worlddir, p(), SUBGAME_ID, TEST, testCreation(), testGetModMediaPaths(), testGetModMediaPathsWrongDir(), testGetModNames(), testGetModNamesWrongDir(), testGetMods(), testGetModspec(), testGetModsWrongDir(), testIsConsistent(), testUnsatisfiedMods(), and warningstream.
void TestServerModManager::testCreation | ( | ) |
References DIR_DELIM, m_worlddir, Settings::set(), SUBGAME_ID, UASSERTEQ, and Settings::updateConfigFile().
Referenced by runTests().
void TestServerModManager::testGetModMediaPaths | ( | ) |
References DIR_DELIM, ServerModManager::getModsMediaPaths(), ServerModManager::getModSpec(), m_worlddir, ModSpec::path, UASSERT, and UASSERTEQ.
Referenced by runTests().
void TestServerModManager::testGetModMediaPathsWrongDir | ( | ) |
References DIR_DELIM, ServerModManager::getModsMediaPaths(), m_worlddir, and UASSERTEQ.
Referenced by runTests().
void TestServerModManager::testGetModNames | ( | ) |
References ServerModManager::getModNames(), m_worlddir, UASSERT, and UASSERTEQ.
Referenced by runTests().
void TestServerModManager::testGetModNamesWrongDir | ( | ) |
References DIR_DELIM, ServerModManager::getModNames(), m_worlddir, and UASSERTEQ.
Referenced by runTests().
void TestServerModManager::testGetMods | ( | ) |
References ServerModManager::getMods(), m_worlddir, UASSERT, and UASSERTEQ.
Referenced by runTests().
void TestServerModManager::testGetModspec | ( | ) |
References ServerModManager::getModSpec(), m_worlddir, UASSERT, and UASSERTEQ.
Referenced by runTests().
void TestServerModManager::testGetModsWrongDir | ( | ) |
References DIR_DELIM, ServerModManager::getMods(), m_worlddir, and UASSERTEQ.
Referenced by runTests().
void TestServerModManager::testIsConsistent | ( | ) |
References ServerModManager::isConsistent(), m_worlddir, and UASSERTEQ.
Referenced by runTests().
void TestServerModManager::testUnsatisfiedMods | ( | ) |
References ServerModManager::getUnsatisfiedMods(), m_worlddir, and UASSERTEQ.
Referenced by runTests().
std::string TestServerModManager::m_worlddir |