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

Public Member Functions

 TestAuthDatabase ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void runTestsForCurrentDB ()
 
void testRecallFail ()
 
void testCreate ()
 
void testRecall ()
 
void testChange ()
 
void testRecallChanged ()
 
void testChangePrivileges ()
 
void testRecallChangedPrivileges ()
 
void testListNames ()
 
void testDelete ()
 
- 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

AuthDatabaseProvider * auth_provider
 

Additional Inherited Members

- Public Attributes inherited from TestBase
u32 num_tests_failed
 
u32 num_tests_run
 

Constructor & Destructor Documentation

◆ TestAuthDatabase()

TestAuthDatabase::TestAuthDatabase ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestAuthDatabase::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestAuthDatabase::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

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

+ Here is the call graph for this function:

◆ runTestsForCurrentDB()

void TestAuthDatabase::runTestsForCurrentDB ( )

References TEST, testChange(), testChangePrivileges(), testCreate(), testDelete(), testListNames(), testRecall(), testRecallChanged(), testRecallChangedPrivileges(), and testRecallFail().

Referenced by runTests().

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

◆ testChange()

void TestAuthDatabase::testChange ( )

References auth_provider, AuthDatabase::getAuth(), AuthEntry::last_login, AuthEntry::password, AuthDatabase::saveAuth(), and UASSERT.

Referenced by runTestsForCurrentDB().

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

◆ testChangePrivileges()

void TestAuthDatabase::testChangePrivileges ( )

References auth_provider, AuthDatabase::getAuth(), AuthEntry::privileges, AuthDatabase::saveAuth(), and UASSERT.

Referenced by runTestsForCurrentDB().

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

◆ testCreate()

void TestAuthDatabase::testCreate ( )

References auth_provider, AuthDatabase::createAuth(), AuthEntry::last_login, AuthEntry::name, AuthEntry::password, AuthEntry::privileges, and UASSERT.

Referenced by runTestsForCurrentDB().

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

◆ testDelete()

void TestAuthDatabase::testDelete ( )

References auth_provider, AuthDatabase::deleteAuth(), and UASSERT.

Referenced by runTestsForCurrentDB().

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

◆ testListNames()

void TestAuthDatabase::testListNames ( )

References auth_provider, AuthDatabase::createAuth(), AuthEntry::last_login, AuthDatabase::listNames(), AuthEntry::name, AuthEntry::password, AuthEntry::privileges, str_join(), and UASSERTEQ.

Referenced by runTestsForCurrentDB().

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

◆ testRecall()

void TestAuthDatabase::testRecall ( )

References auth_provider, AuthDatabase::getAuth(), AuthEntry::name, AuthEntry::password, AuthEntry::privileges, str_join(), UASSERT, and UASSERTEQ.

Referenced by runTestsForCurrentDB().

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

◆ testRecallChanged()

void TestAuthDatabase::testRecallChanged ( )

References auth_provider, AuthDatabase::getAuth(), AuthEntry::last_login, AuthEntry::password, AuthEntry::privileges, str_join(), UASSERT, and UASSERTEQ.

Referenced by runTestsForCurrentDB().

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

◆ testRecallChangedPrivileges()

void TestAuthDatabase::testRecallChangedPrivileges ( )

References auth_provider, AuthDatabase::getAuth(), AuthEntry::privileges, str_join(), UASSERT, and UASSERTEQ.

Referenced by runTestsForCurrentDB().

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

◆ testRecallFail()

void TestAuthDatabase::testRecallFail ( )

References auth_provider, AuthDatabase::getAuth(), and UASSERT.

Referenced by runTestsForCurrentDB().

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

Member Data Documentation

◆ auth_provider


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