Test cases for code below common/ and shared/. More...
#include "CUnit/Basic.h"
#include "test_shared.h"
#include "../common/common.h"
#include "../shared/utf8.h"
#include "../shared/shared.h"
#include "../ports/system.h"
#include "test_generic.h"
Go to the source code of this file.
Functions | |
static int | UFO_InitSuiteGeneric (void) |
static int | UFO_CleanSuiteGeneric (void) |
static void | testConstInt (void) |
static void | testLinkedList (void) |
static void | testStringCopiers (void) |
int | UFO_AddGenericTests (void) |
Test cases for code below common/ and shared/.
Definition in file test_generic.c.
static void testConstInt | ( | void | ) | [static] |
Definition at line 54 of file test_generic.c.
References Com_GetConstInt(), Com_GetConstVariable(), Com_RegisterConstInt(), Com_RegisterConstList(), Com_UnregisterConstList(), and Com_UnregisterConstVariable().
Referenced by UFO_AddGenericTests().
static void testLinkedList | ( | void | ) | [static] |
Definition at line 140 of file test_generic.c.
References byte, linkedList_s::data, data, LIST_Add(), LIST_ContainsString(), LIST_Count(), LIST_GetByIdx(), and LIST_RemoveEntry().
Referenced by UFO_AddGenericTests().
static void testStringCopiers | ( | void | ) | [static] |
Definition at line 162 of file test_generic.c.
References Com_sprintf(), dest, i, Q_strncpyz(), Sys_Milliseconds(), TEST_Printf(), and UTF8_strncpyz().
Referenced by UFO_AddGenericTests().
int UFO_AddGenericTests | ( | void | ) |
Definition at line 274 of file test_generic.c.
References testConstInt(), testLinkedList(), testStringCopiers(), UFO_CleanSuiteGeneric(), and UFO_InitSuiteGeneric().
static int UFO_CleanSuiteGeneric | ( | void | ) | [static] |
The suite cleanup function. Returns zero on success, non-zero otherwise.
Definition at line 48 of file test_generic.c.
References TEST_Shutdown().
Referenced by UFO_AddGenericTests().
static int UFO_InitSuiteGeneric | ( | void | ) | [static] |
The suite initialization function. Returns zero on success, non-zero otherwise.
Definition at line 38 of file test_generic.c.
References TEST_Init().
Referenced by UFO_AddGenericTests().