UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
test_generic.cpp File Reference

Test cases for code below common/ and shared/. More...

Go to the source code of this file.

Data Structures

class  GenericTest
 

Functions

static void STRHUNK_VisitorTestEntry (const char *string)
 
static void STRHUNK_VisitorTestEntry2 (const char *string)
 
 TEST_F (GenericTest, StringHunks)
 
 TEST_F (GenericTest, ConstInt)
 
static int testListSorter (linkedList_t *entry1, linkedList_t *entry2, const void *userData)
 
 TEST_F (GenericTest, LinkedList)
 
 TEST_F (GenericTest, LinkedListIterator)
 
 TEST_F (GenericTest, LinkedListIteratorRemove)
 
 TEST_F (GenericTest, PrependStringList)
 
 TEST_F (GenericTest, LinkedListStringSort)
 
 TEST_F (GenericTest, FileSystemBuildLists)
 
 TEST_F (GenericTest, InfoStrings)
 
 TEST_F (GenericTest, TokenizeInfoStrings)
 
 TEST_F (GenericTest, Cvars)
 
 TEST_F (GenericTest, StringCopiers)
 
 TEST_F (GenericTest, StringFunctions)
 
 TEST_F (GenericTest, HttpHelperFunctions)
 
 TEST_F (GenericTest, NetResolv)
 
 TEST_F (GenericTest, UnsignedIntToBinary)
 
 TEST_F (GenericTest, StringCheckFunctions)
 
 TEST_F (GenericTest, EntitiesDef)
 
 TEST_F (GenericTest, GetBlock)
 
 TEST_F (GenericTest, ComFilePath)
 
 TEST_F (GenericTest, MD5File)
 
 TEST_F (GenericTest, MD5Buffer)
 
 TEST_F (GenericTest, SHA1Buffer)
 
 TEST_F (GenericTest, SHA2Buffer)
 
static int TEST_BEP (const char *id, const void *userdata)
 The string 'a' and 'c' evaluates to true - everything else to false. More...
 
 TEST_F (GenericTest, BinaryExpressionParser)
 

Detailed Description

Test cases for code below common/ and shared/.

Definition in file test_generic.cpp.

Function Documentation

static void STRHUNK_VisitorTestEntry ( const char *  string)
static

Definition at line 52 of file test_generic.cpp.

Referenced by TEST_F().

static void STRHUNK_VisitorTestEntry2 ( const char *  string)
static

Definition at line 57 of file test_generic.cpp.

Referenced by TEST_F().

static int TEST_BEP ( const char *  id,
const void userdata 
)
static

The string 'a' and 'c' evaluates to true - everything else to false.

Definition at line 789 of file test_generic.cpp.

References Q_streq.

Referenced by TEST_F().

TEST_F ( GenericTest  ,
LinkedListIterator   
)

Definition at line 237 of file test_generic.cpp.

References LIST_AddString(), LIST_Delete(), and LIST_Foreach.

TEST_F ( GenericTest  ,
LinkedListIteratorRemove   
)
TEST_F ( GenericTest  ,
PrependStringList   
)

Definition at line 280 of file test_generic.cpp.

References LIST_Delete(), LIST_GetByIdx(), and LIST_PrependString().

TEST_F ( GenericTest  ,
LinkedListStringSort   
)

Definition at line 293 of file test_generic.cpp.

References LIST_AddStringSorted(), LIST_Delete(), and LIST_GetByIdx().

TEST_F ( GenericTest  ,
FileSystemBuildLists   
)

Definition at line 306 of file test_generic.cpp.

References FS_BuildFileList(), FS_NextFileFromFileList(), and Q_StringSort().

TEST_F ( GenericTest  ,
InfoStrings   
)
TEST_F ( GenericTest  ,
TokenizeInfoStrings   
)
TEST_F ( GenericTest  ,
Cvars   
)

Definition at line 351 of file test_generic.cpp.

References Cvar_Get(), Cvar_GetString(), CVAR_NOSET, and Cvar_Set().

TEST_F ( GenericTest  ,
StringCopiers   
)
TEST_F ( GenericTest  ,
HttpHelperFunctions   
)

Definition at line 573 of file test_generic.cpp.

References HTTP_ExtractComponents(), and port.

TEST_F ( GenericTest  ,
NetResolv   
)

Definition at line 644 of file test_generic.cpp.

References MAX_VAR, and NET_ResolvNode().

TEST_F ( GenericTest  ,
UnsignedIntToBinary   
)

Definition at line 651 of file test_generic.cpp.

References Com_ByteToBinary(), and Com_UnsignedIntToBinary().

TEST_F ( GenericTest  ,
StringCheckFunctions   
)

Definition at line 672 of file test_generic.cpp.

References Q_strnull(), and Q_strvalid.

TEST_F ( GenericTest  ,
GetBlock   
)

Definition at line 719 of file test_generic.cpp.

References Com_GetBlock(), and length.

TEST_F ( GenericTest  ,
ComFilePath   
)

Definition at line 737 of file test_generic.cpp.

References Com_FilePath().

TEST_F ( GenericTest  ,
MD5File   
)

Definition at line 747 of file test_generic.cpp.

References Com_MD5File(), and Com_Printf().

TEST_F ( GenericTest  ,
MD5Buffer   
)

Definition at line 755 of file test_generic.cpp.

References Com_MD5Buffer(), and Com_Printf().

TEST_F ( GenericTest  ,
SHA1Buffer   
)

Definition at line 764 of file test_generic.cpp.

References Com_Printf(), and Com_SHA1Buffer().

TEST_F ( GenericTest  ,
SHA2Buffer   
)

Definition at line 774 of file test_generic.cpp.

References Com_Printf(), Com_SHA2Csum(), and Com_SHA2ToHex().

TEST_F ( GenericTest  ,
BinaryExpressionParser   
)

Definition at line 794 of file test_generic.cpp.

References BEP_Evaluate(), and TEST_BEP().

static int testListSorter ( linkedList_t entry1,
linkedList_t entry2,
const void userData 
)
static

Definition at line 182 of file test_generic.cpp.

References linkedList_t::data.

Referenced by TEST_F().