test_parser.c File Reference

Test cases for code about shared parser. More...

#include "CUnit/Basic.h"
#include "test_shared.h"
#include "test_parser.h"
#include "../shared/parse.h"
Include dependency graph for test_parser.c:

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)

Detailed Description

Test cases for code about shared parser.

Definition in file test_parser.c.


Function Documentation

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   ) 
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().


Generated by  doxygen 1.6.2