testdefinitiondatatypes.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <errno.h>
#include <string.h>
#include <libxml/xmlreader.h>
#include <libxml/xmlschemas.h>
#include "testrunnerlite.h"
#include "testdefinitiondatatypes.h"
#include "log.h"

Go to the source code of this file.

Functions

LOCAL void list_string_delete (xmlLinkPtr)
LOCAL void gen_attribs_delete (td_gen_attribs *)
LOCAL int list_string_compare (const void *, const void *)
LOCAL int list_dummy_compare (const void *data0, const void *data1)
LOCAL void td_file_delete (xmlLinkPtr lk)
const char * case_result_str (case_result_t cr)
td_suitetd_suite_create ()
void td_suite_delete (td_suite *s)
td_settd_set_create ()
void td_set_delete (td_set *s)
td_steptd_step_create ()
td_casetd_case_create ()
td_stepstd_steps_create ()
void td_step_delete (xmlLinkPtr lk)
void td_case_delete (xmlLinkPtr lk)
void td_steps_delete (xmlLinkPtr lk)

Variables

LOCAL const char * case_res_str [] = {"FAIL", "PASS", "N/A"}


Function Documentation

const char* case_result_str ( case_result_t  cr  ) 

Returns string matching the case result value

Parameters:
cr case result value
Returns:
const string matching the value

Definition at line 152 of file testdefinitiondatatypes.c.

LOCAL void gen_attribs_delete ( td_gen_attribs gen  ) 

Deallocator for general attributes

Parameters:
gen general attributes

Definition at line 137 of file testdefinitiondatatypes.c.

LOCAL int list_dummy_compare ( const void *  data0,
const void *  data1 
)

Comparison function for list without ordering

Parameters:
data0 string to compare - not used
data1 string to compare - not used
Returns:
0 always

Definition at line 116 of file testdefinitiondatatypes.c.

LOCAL int list_string_compare ( const void *  data0,
const void *  data1 
)

Comparison function for list with xmlchar* items

Parameters:
data0 string to compare
data1 string to compare
Returns:
0 if strings match

Definition at line 104 of file testdefinitiondatatypes.c.

LOCAL void list_string_delete ( xmlLinkPtr  lk  ) 

Deallocator for list with xmlchar* items

Parameters:
lk list item

Definition at line 93 of file testdefinitiondatatypes.c.

td_case* td_case_create (  ) 

Creates a td_case data structure

Returns:
pointer to td_case or NULL in case of OOM

Definition at line 253 of file testdefinitiondatatypes.c.

void td_case_delete ( xmlLinkPtr  lk  ) 

Deallocator for td_case data structure

Definition at line 304 of file testdefinitiondatatypes.c.

LOCAL void td_file_delete ( xmlLinkPtr  lk  ) 

Deallocator for list with td_file items

Parameters:
lk list item

Definition at line 126 of file testdefinitiondatatypes.c.

td_set* td_set_create (  ) 

Creates a td_set data structure, initializes lists for pre_steps etc.

Returns:
pointer to td_set or NULL in case of OOM

Definition at line 189 of file testdefinitiondatatypes.c.

void td_set_delete ( td_set s  ) 

De-allocate td_set data structure

Parameters:
*s td_set data

Definition at line 220 of file testdefinitiondatatypes.c.

td_step* td_step_create (  ) 

Creates a td_step data structure

Returns:
pointer to td_step or NULL in case of OOM

Definition at line 237 of file testdefinitiondatatypes.c.

void td_step_delete ( xmlLinkPtr  lk  ) 

Deallocator for td_step called by xmlListDelete

Definition at line 289 of file testdefinitiondatatypes.c.

td_steps* td_steps_create (  ) 

Creates a td_steps data structure

Returns:
pointer to td_case or NULL in case of OOM

Definition at line 271 of file testdefinitiondatatypes.c.

void td_steps_delete ( xmlLinkPtr  lk  ) 

Deallocator for td_steps data structure

Definition at line 316 of file testdefinitiondatatypes.c.

td_suite* td_suite_create (  ) 

Creates a td_suite data structure, initializes lists for pre_steps etc.

Returns:
pointer to td_set or NULL in case of OOM

Definition at line 161 of file testdefinitiondatatypes.c.

void td_suite_delete ( td_suite s  ) 

De-allocate td_suite data structure

Parameters:
*s td_suite data

Definition at line 176 of file testdefinitiondatatypes.c.


Variable Documentation

LOCAL const char* case_res_str[] = {"FAIL", "PASS", "N/A"}

Definition at line 65 of file testdefinitiondatatypes.c.


Generated on Tue Jul 27 01:28:56 2010 for testrunner-lite by  doxygen 1.5.6