|
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, Q_strnull(), and TEST_CheckImage().
Referenced by TEST_CheckImage(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 73 of file test_scripts.cpp.
References FS_CheckFile(), i, Q_strnull(), and TEST_CheckModel().
Referenced by TEST_CheckModel(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 106 of file test_scripts.cpp.
References CL_ParticleGet(), Q_strnull(), and TEST_CheckParticle().
Referenced by TEST_CheckParticle(), and TEST_F().
|
static |
Definition at line 89 of file test_scripts.cpp.
References FS_CheckFile(), i, Q_strnull(), and TEST_CheckSound().
Referenced by TEST_CheckSound(), TEST_F(), and TEST_F().
| TEST_F | ( | ScriptTest | , |
| Aircraft | ) |
Definition at line 214 of file test_scripts.cpp.
References AIR_Foreach, TEST_CheckImage(), TEST_CheckModel(), and TEST_F().
| 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, csi_t::numODs, objDef_t::numWeapons, fireDef_t::projectile, objDef_t::reloadSound, TEST_CheckImage(), TEST_CheckModel(), TEST_CheckParticle(), TEST_CheckSound(), and TEST_F().
| 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, csi_t::numMDs, mapDef_t::singleplayer, and TEST_F().
| TEST_F | ( | ScriptTest | , |
| Nations | ) |
Definition at line 206 of file test_scripts.cpp.
References Com_GetTeamDefinitionByID(), NAT_Foreach, TEST_CheckImage(), TEST_F(), 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, csi_t::numTeamDefs, teamDef_t::numTemplates, SND_MAX, teamDef_t::sounds, csi_t::teamDef, TEST_CheckSound(), and TEST_F().
| TEST_F | ( | ScriptTest | , |
| TeamDefsModelScriptData | ) |
Definition at line 132 of file test_scripts.cpp.
References teamDef_t::armour, objDef_t::armourPath, teamDef_t::model_t::body, CHRSH_IsArmourUseableForTeam(), csi, teamDef_t::model_t::head, i, teamDef_t::id, INVSH_GetItemByIDX(), objDef_t::isArmour(), LIST_AddString(), LIST_ContainsString(), LIST_Delete(), LIST_Foreach, LIST_IsEmpty(), teamDef_t::models, NAME_LAST, NAME_NEUTRAL, linkedList_t::next, teamDef_t::numModels, csi_t::numODs, csi_t::numTeamDefs, teamDef_t::model_t::path, csi_t::teamDef, TEST_CheckModel(), TEST_F(), and va().