Inheritance diagram for TestScriptApi:
Collaboration diagram for TestScriptApi:Public Member Functions | |
| TestScriptApi () | |
| const char * | getName () |
| void | runTests (IGameDef *gamedef) |
| void | testVectorMetatable (MyScriptApi *script) |
| void | testVectorRead (MyScriptApi *script) |
| void | testVectorReadErr (MyScriptApi *script) |
| void | testVectorReadMix (MyScriptApi *script) |
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 rawstream, TEST, and BaseException::what().
Here is the call graph for this function:| void TestScriptApi::testVectorMetatable | ( | MyScriptApi * | script | ) |
References push_v2f(), push_v2s32(), push_v3f(), push_v3s16(), run(), and UASSERT.
Here is the call graph for this function:| void TestScriptApi::testVectorRead | ( | MyScriptApi * | script | ) |
References check_v3s16(), read_v3s16(), run(), S16_MAX, S16_MIN, and UASSERTEQ.
Here is the call graph for this function:| void TestScriptApi::testVectorReadErr | ( | MyScriptApi * | script | ) |
References check_v3s16(), EXCEPTION_CHECK, infostream, read_v3s16(), and run().
Here is the call graph for this function:| void TestScriptApi::testVectorReadMix | ( | MyScriptApi * | script | ) |
References check_v3s16(), EXCEPTION_CHECK, infostream, read_v3s16(), run(), and UASSERTEQ.
Here is the call graph for this function: