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_tdtd_td_create ()
void td_td_delete (td_td *td)
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 156 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 278 of file testdefinitiondatatypes.c.

void td_case_delete ( xmlLinkPtr  lk  ) 

Deallocator for td_case data structure

Definition at line 329 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 215 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 246 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 262 of file testdefinitiondatatypes.c.

void td_step_delete ( xmlLinkPtr  lk  ) 

Deallocator for td_step called by xmlListDelete

Definition at line 314 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 296 of file testdefinitiondatatypes.c.

void td_steps_delete ( xmlLinkPtr  lk  ) 

Deallocator for td_steps data structure

Definition at line 343 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 191 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 206 of file testdefinitiondatatypes.c.

td_td* td_td_create (  ) 

Creates test definition data structure

Returns:
pointer to td_td or NULL in case of OOM

Definition at line 165 of file testdefinitiondatatypes.c.

void td_td_delete ( td_td td  ) 

De-allocate test definition data structure

Parameters:
*td td_td data

Definition at line 180 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 Wed Nov 10 14:13:01 2010 for testrunner-lite by  doxygen 1.5.6