UFO: Alien Invasion
Loading...
Searching...
No Matches
test_scripts.cpp File Reference

Test cases for checking the scripts for logic errors. More...

Include dependency graph for test_scripts.cpp:

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)

Detailed Description

Test cases for checking the scripts for logic errors.

Definition in file test_scripts.cpp.

Function Documentation

◆ TEST_CheckImage()

bool TEST_CheckImage ( const char * path)
static

Definition at line 56 of file test_scripts.cpp.

References FS_CheckFile(), i, and Q_strnull().

Referenced by TEST_F(), TEST_F(), and TEST_F().

◆ TEST_CheckModel()

bool TEST_CheckModel ( const char * path)
static

Definition at line 73 of file test_scripts.cpp.

References FS_CheckFile(), i, and Q_strnull().

Referenced by TEST_F(), TEST_F(), and TEST_F().

◆ TEST_CheckParticle()

bool TEST_CheckParticle ( const char * particleID)
static

Definition at line 106 of file test_scripts.cpp.

References CL_ParticleGet(), and Q_strnull().

Referenced by TEST_F().

◆ TEST_CheckSound()

bool TEST_CheckSound ( const char * path)
static

Definition at line 89 of file test_scripts.cpp.

References FS_CheckFile(), i, and Q_strnull().

Referenced by TEST_F(), and TEST_F().

◆ TEST_F() [1/6]

TEST_F ( ScriptTest ,
Aircraft  )

Definition at line 214 of file test_scripts.cpp.

References AIR_Foreach, TEST_CheckImage(), and TEST_CheckModel().

◆ TEST_F() [2/6]

◆ TEST_F() [3/6]

◆ TEST_F() [4/6]

TEST_F ( ScriptTest ,
Nations  )

Definition at line 206 of file test_scripts.cpp.

References Com_GetTeamDefinitionByID(), NAT_Foreach, TEST_CheckImage(), and va().

◆ TEST_F() [5/6]

TEST_F ( ScriptTest ,
TeamDefs  )

◆ TEST_F() [6/6]