Public Member Functions | |
TestAddress () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testBasic () |
void | testIsLocalhost () |
void | testResolve () |
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 |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References TEST, testBasic(), testIsLocalhost(), and testResolve().
void TestAddress::testBasic | ( | ) |
References Address::getFamily(), Address::isAny(), Address::isValid(), UASSERT, and UASSERTEQ.
Referenced by runTests().
void TestAddress::testIsLocalhost | ( | ) |
References Address::isLocalhost(), and UASSERT.
Referenced by runTests().
void TestAddress::testResolve | ( | ) |
References g_settings, Settings::getBool(), Address::getFamily(), Address::isAny(), Address::isLocalhost(), Address::isValid(), Address::Resolve(), UASSERT, UASSERTCMP, and warningstream.
Referenced by runTests().