|
UFO: Alien Invasion
|
Test cases for checking the scripts for logic errors. More...
#include "test_shared.h"#include "../client/client.h"#include "../client/cl_lua.h"#include "../client/renderer/r_state.h"#include "../client/ui/ui_main.h"#include "../client/battlescape/cl_particle.h"#include "../client/cgame/campaign/cp_campaign.h"
Go to the source code of this file.
Data Structures | |
| class | ScriptTest |
Functions | |
| static bool | TEST_CheckImage (const char *path) |
| static bool | TEST_CheckModel (const char *path) |
| static bool | TEST_CheckSound (const char *path) |
| static bool | TEST_CheckParticle (const char *particleID) |
| TEST_F (ScriptTest, TeamDefs) | |
| TEST_F (ScriptTest, TeamDefsModelScriptData) | |
| TEST_F (ScriptTest, Items) | |
| TEST_F (ScriptTest, Nations) | |
| TEST_F (ScriptTest, Aircraft) | |
| TEST_F (ScriptTest, MapDef) | |
Test cases for checking the scripts for logic errors.
Definition in file test_scripts.cpp.
|
static |
Definition at line 56 of file test_scripts.cpp.
References FS_CheckFile(), i, and Q_strnull().
|
static |
Definition at line 73 of file test_scripts.cpp.
References FS_CheckFile(), i, and Q_strnull().
|
static |
Definition at line 106 of file test_scripts.cpp.
References CL_ParticleGet(), and Q_strnull().
Referenced by TEST_F().
|
static |
Definition at line 89 of file test_scripts.cpp.
References FS_CheckFile(), i, and Q_strnull().
| TEST_F | ( | ScriptTest | , |
| Aircraft | ) |
Definition at line 214 of file test_scripts.cpp.
References AIR_Foreach, TEST_CheckImage(), and TEST_CheckModel().
| TEST_F | ( | ScriptTest | , |
| Items | ) |
Definition at line 180 of file test_scripts.cpp.
References fireDef_t::bounceSound, csi, objDef_t::fd, fireDef_t::fireSound, fireDef_t::hitBody, fireDef_t::hitBodySound, i, objDef_t::id, objDef_t::image, fireDef_t::impact, fireDef_t::impactSound, INVSH_GetItemByIDX(), objDef_t::isDummy, objDef_t::isVirtual, objDef_t::model, fireDef_t::name, objDef_t::numFiredefs, objDef_t::numWeapons, fireDef_t::projectile, objDef_t::reloadSound, TEST_CheckImage(), TEST_CheckModel(), TEST_CheckParticle(), and TEST_CheckSound().
| TEST_F | ( | ScriptTest | , |
| MapDef | ) |
Definition at line 222 of file test_scripts.cpp.
References mapDef_t::campaign, mapDef_t::civTeam, Com_GetTeamDefinitionByID(), csi, mapDef_t::description, i, mapDef_t::id, MapDef_Foreach, MapDef_ForeachCondition, MapDef_ForeachSingleplayerCampaign, mapDef_t::mapTheme, mapDef_t::maxAliens, and mapDef_t::singleplayer.
| TEST_F | ( | ScriptTest | , |
| Nations | ) |
Definition at line 206 of file test_scripts.cpp.
References Com_GetTeamDefinitionByID(), NAT_Foreach, TEST_CheckImage(), and va().
| TEST_F | ( | ScriptTest | , |
| TeamDefs | ) |
Definition at line 115 of file test_scripts.cpp.
References csi, i, teamDef_t::id, LIST_Foreach, NAME_LAST, teamDef_t::numTemplates, SND_MAX, teamDef_t::sounds, and TEST_CheckSound().
| TEST_F | ( | ScriptTest | , |
| TeamDefsModelScriptData | ) |
Definition at line 132 of file test_scripts.cpp.
References teamDef_t::armour, objDef_t::armourPath, CHRSH_IsArmourUseableForTeam(), csi, i, teamDef_t::id, INVSH_GetItemByIDX(), objDef_t::isArmour(), LIST_AddString(), LIST_ContainsString(), LIST_Delete(), LIST_Foreach, LIST_IsEmpty(), m, teamDef_t::models, NAME_LAST, NAME_NEUTRAL, linkedList_t::next, teamDef_t::numModels, TEST_CheckModel(), and va().