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

Public Member Functions

 TestKeycode ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testCreateFromString ()
 
void testCreateFromSKeyInput ()
 
void testCompare ()
 
- 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
 

Constructor & Destructor Documentation

◆ TestKeycode()

TestKeycode::TestKeycode ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestKeycode::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestKeycode::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References TEST, testCompare(), testCreateFromSKeyInput(), and testCreateFromString().

+ Here is the call graph for this function:

◆ testCompare()

void TestKeycode::testCompare ( )

References UASSERT.

Referenced by runTests().

+ Here is the caller graph for this function:

◆ testCreateFromSKeyInput()

void TestKeycode::testCreateFromSKeyInput ( )

References KeyPress::Key, KeyPress::sym(), and UASSERTEQ_STR.

Referenced by runTests().

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

◆ testCreateFromString()

void TestKeycode::testCreateFromString ( )

References KeyPress::name(), KeyPress::sym(), UASSERTCMP, and UASSERTEQ_STR.

Referenced by runTests().

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

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