Test cases for code about shared parser. More...
#include "CUnit/Basic.h"
#include "test_shared.h"
#include "test_parser.h"
#include "../shared/parse.h"
Go to the source code of this file.
Functions | |
static int | UFO_InitSuiteParser (void) |
static int | UFO_CleanSuiteParser (void) |
static void | testParser (void) |
unittest around default use of parser | |
static void | testParserWithEntity (void) |
unittest to check back slash entity conversion | |
static void | testParserWithUnParse (void) |
unittest around default use of parser | |
static void | testParserWithFunctionScriptToken (void) |
unittest around default use of parser | |
int | UFO_AddParserTests (void) |
Test cases for code about shared parser.
Definition in file test_parser.c.
static void testParser | ( | void | ) | [static] |
unittest around default use of parser
Definition at line 56 of file test_parser.c.
References Com_Parse(), and Com_ParsedTokenIsQuoted().
Referenced by UFO_AddParserTests().
static void testParserWithEntity | ( | void | ) | [static] |
unittest to check back slash entity conversion
Definition at line 102 of file test_parser.c.
References Com_Parse(), and Com_ParsedTokenIsQuoted().
Referenced by UFO_AddParserTests().
static void testParserWithFunctionScriptToken | ( | void | ) | [static] |
unittest around default use of parser
Definition at line 178 of file test_parser.c.
References Com_EnableFunctionScriptToken(), Com_Parse(), Com_ParsedTokenIsQuoted(), and qtrue.
Referenced by UFO_AddParserTests().
static void testParserWithUnParse | ( | void | ) | [static] |
unittest around default use of parser
Definition at line 120 of file test_parser.c.
References Com_Parse(), Com_ParsedTokenIsQuoted(), and Com_UnParseLastToken().
Referenced by UFO_AddParserTests().
int UFO_AddParserTests | ( | void | ) |
Definition at line 235 of file test_parser.c.
References testParser(), testParserWithEntity(), testParserWithFunctionScriptToken(), testParserWithUnParse(), UFO_CleanSuiteParser(), and UFO_InitSuiteParser().
static int UFO_CleanSuiteParser | ( | void | ) | [static] |
The suite cleanup function. Returns zero on success, non-zero otherwise.
Definition at line 47 of file test_parser.c.
References TEST_Shutdown().
Referenced by UFO_AddParserTests().
static int UFO_InitSuiteParser | ( | void | ) | [static] |
The suite initialization function. Returns zero on success, non-zero otherwise.
Definition at line 35 of file test_parser.c.
References Com_EnableFunctionScriptToken(), qfalse, and TEST_Init().
Referenced by UFO_AddParserTests().