gwenhywfar  5.10.1
Functions
testmodule.c File Reference
#include "./testmodule_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Include dependency graph for testmodule.c:

Go to the source code of this file.

Functions

GWEN_TEST_MODULEGWEN_Test_Module_AddModule (GWEN_TEST_MODULE *st, const char *tName, const char *tDescr)
 
GWEN_TEST_MODULEGWEN_Test_Module_AddTest (GWEN_TEST_MODULE *st, const char *tName, GWEN_TEST_MODULE_TEST_FN fn, const char *tDescr)
 
void GWEN_Test_Module_Attach (GWEN_TEST_MODULE *p_struct)
 
GWEN_TEST_MODULEGWEN_Test_Module_copy (GWEN_TEST_MODULE *p_struct, const GWEN_TEST_MODULE *p_src)
 
GWEN_TEST_MODULEGWEN_Test_Module_dup (const GWEN_TEST_MODULE *p_src)
 
void GWEN_Test_Module_free (GWEN_TEST_MODULE *p_struct)
 
GWEN_TEST_MODULEGWEN_Test_Module_fromDb (GWEN_DB_NODE *p_db)
 
const char * GWEN_Test_Module_GetCharParam (const GWEN_TEST_MODULE *st, const char *paramName, const char *defVal)
 
const char * GWEN_Test_Module_GetDescription (const GWEN_TEST_MODULE *p_struct)
 
uint32_t GWEN_Test_Module_GetId (const GWEN_TEST_MODULE *p_struct)
 
const char * GWEN_Test_Module_GetName (const GWEN_TEST_MODULE *p_struct)
 
const GWEN_DB_NODEGWEN_Test_Module_GetParamsDb (const GWEN_TEST_MODULE *p_struct)
 
int GWEN_Test_Module_GetResult (const GWEN_TEST_MODULE *p_struct)
 
GWEN_TEST_MODULEGWEN_Test_Module_new (void)
 
void GWEN_Test_Module_ReadDb (GWEN_TEST_MODULE *p_struct, GWEN_DB_NODE *p_db)
 
void GWEN_Test_Module_SetCharParam (GWEN_TEST_MODULE *st, const char *paramName, const char *val)
 
void GWEN_Test_Module_SetDescription (GWEN_TEST_MODULE *p_struct, const char *p_src)
 
void GWEN_Test_Module_SetId (GWEN_TEST_MODULE *p_struct, uint32_t p_src)
 
void GWEN_Test_Module_SetName (GWEN_TEST_MODULE *p_struct, const char *p_src)
 
void GWEN_Test_Module_SetParamsDb (GWEN_TEST_MODULE *p_struct, const GWEN_DB_NODE *p_src)
 
void GWEN_Test_Module_SetResult (GWEN_TEST_MODULE *p_struct, int p_src)
 
GWEN_TEST_MODULE_TEST_FN GWEN_Test_Module_SetTestFn (GWEN_TEST_MODULE *p_struct, GWEN_TEST_MODULE_TEST_FN fn)
 
int GWEN_Test_Module_Test (GWEN_TEST_MODULE *p_struct)
 
int GWEN_Test_Module_toDb (const GWEN_TEST_MODULE *p_struct, GWEN_DB_NODE *p_db)
 
GWEN_TEST_MODULEGWEN_Test_Module_Tree2_GetById (const GWEN_TEST_MODULE *p_object, uint32_t p_cmp)
 
int GWEN_Test_Module_WriteDb (const GWEN_TEST_MODULE *p_struct, GWEN_DB_NODE *p_db)
 

Function Documentation

◆ GWEN_Test_Module_AddModule()

GWEN_TEST_MODULE* GWEN_Test_Module_AddModule ( GWEN_TEST_MODULE st,
const char *  tName,
const char *  tDescr 
)

Definition at line 440 of file testmodule.c.

References GWEN_Test_Module_new(), GWEN_Test_Module_SetDescription(), and GWEN_Test_Module_SetName().

Here is the call graph for this function:

◆ GWEN_Test_Module_AddTest()

GWEN_TEST_MODULE* GWEN_Test_Module_AddTest ( GWEN_TEST_MODULE st,
const char *  tName,
GWEN_TEST_MODULE_TEST_FN  fn,
const char *  tDescr 
)

Definition at line 424 of file testmodule.c.

References GWEN_Test_Module_new(), GWEN_Test_Module_SetDescription(), GWEN_Test_Module_SetName(), and GWEN_Test_Module_SetTestFn().

Here is the call graph for this function:

◆ GWEN_Test_Module_Attach()

void GWEN_Test_Module_Attach ( GWEN_TEST_MODULE p_struct)

Definition at line 65 of file testmodule.c.

◆ GWEN_Test_Module_copy()

GWEN_TEST_MODULE* GWEN_Test_Module_copy ( GWEN_TEST_MODULE p_struct,
const GWEN_TEST_MODULE p_src 
)

Definition at line 117 of file testmodule.c.

References GWEN_DB_Group_dup(), GWEN_DB_Group_free(), and NULL.

Here is the call graph for this function:

◆ GWEN_Test_Module_dup()

GWEN_TEST_MODULE* GWEN_Test_Module_dup ( const GWEN_TEST_MODULE p_src)

Definition at line 72 of file testmodule.c.

References GWEN_DB_Group_dup(), GWEN_DB_Group_free(), GWEN_Test_Module_new(), and NULL.

Here is the call graph for this function:

◆ GWEN_Test_Module_free()

void GWEN_Test_Module_free ( GWEN_TEST_MODULE p_struct)

Destructor.

Definition at line 43 of file testmodule.c.

References GWEN_DB_Group_free(), GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, GWEN_TREE2_FINI, and NULL.

Referenced by TestFramework_free().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Test_Module_fromDb()

GWEN_TEST_MODULE* GWEN_Test_Module_fromDb ( GWEN_DB_NODE p_db)

Definition at line 389 of file testmodule.c.

References GWEN_Test_Module_new(), and GWEN_Test_Module_ReadDb().

Here is the call graph for this function:

◆ GWEN_Test_Module_GetCharParam()

const char* GWEN_Test_Module_GetCharParam ( const GWEN_TEST_MODULE st,
const char *  paramName,
const char *  defVal 
)

Definition at line 453 of file testmodule.c.

References GWEN_DB_GetCharValue(), and NULL.

Here is the call graph for this function:

◆ GWEN_Test_Module_GetDescription()

const char* GWEN_Test_Module_GetDescription ( const GWEN_TEST_MODULE p_struct)

Getter. Use this function to get the member "description" (see GWEN_TEST_MODULE_description)

Definition at line 172 of file testmodule.c.

◆ GWEN_Test_Module_GetId()

uint32_t GWEN_Test_Module_GetId ( const GWEN_TEST_MODULE p_struct)

Getter. Use this function to get the member "id" (see GWEN_TEST_MODULE_id)

Definition at line 160 of file testmodule.c.

◆ GWEN_Test_Module_GetName()

const char* GWEN_Test_Module_GetName ( const GWEN_TEST_MODULE p_struct)

Getter. Use this function to get the member "name" (see GWEN_TEST_MODULE_name)

Definition at line 166 of file testmodule.c.

Referenced by _runModule(), and _runTest().

Here is the caller graph for this function:

◆ GWEN_Test_Module_GetParamsDb()

const GWEN_DB_NODE* GWEN_Test_Module_GetParamsDb ( const GWEN_TEST_MODULE p_struct)

Definition at line 184 of file testmodule.c.

◆ GWEN_Test_Module_GetResult()

int GWEN_Test_Module_GetResult ( const GWEN_TEST_MODULE p_struct)

Getter. Use this function to get the member "result" (see GWEN_TEST_MODULE_result)

Definition at line 178 of file testmodule.c.

◆ GWEN_Test_Module_new()

GWEN_TEST_MODULE* GWEN_Test_Module_new ( void  )

Constructor.

Definition at line 24 of file testmodule.c.

References GWEN_INHERIT_INIT, GWEN_NEW_OBJECT, GWEN_TREE2_INIT, and NULL.

Referenced by GWEN_Test_Module_AddModule(), GWEN_Test_Module_AddTest(), GWEN_Test_Module_dup(), GWEN_Test_Module_fromDb(), and TestFramework_new().

Here is the caller graph for this function:

◆ GWEN_Test_Module_ReadDb()

void GWEN_Test_Module_ReadDb ( GWEN_TEST_MODULE p_struct,
GWEN_DB_NODE p_db 
)

Definition at line 268 of file testmodule.c.

References GWEN_DB_GetCharValue(), GWEN_DB_GetGroup(), GWEN_DB_GetIntValue(), GWEN_DB_Group_dup(), GWEN_DB_Group_free(), GWEN_PATH_FLAGS_NAMEMUSTEXIST, and NULL.

Referenced by GWEN_Test_Module_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Test_Module_SetCharParam()

void GWEN_Test_Module_SetCharParam ( GWEN_TEST_MODULE st,
const char *  paramName,
const char *  val 
)

Definition at line 469 of file testmodule.c.

References GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_Group_new(), GWEN_DB_SetCharValue(), and NULL.

Here is the call graph for this function:

◆ GWEN_Test_Module_SetDescription()

void GWEN_Test_Module_SetDescription ( GWEN_TEST_MODULE p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "description" (see GWEN_TEST_MODULE_description)

Definition at line 211 of file testmodule.c.

References NULL.

Referenced by GWEN_Test_Module_AddModule(), and GWEN_Test_Module_AddTest().

Here is the caller graph for this function:

◆ GWEN_Test_Module_SetId()

void GWEN_Test_Module_SetId ( GWEN_TEST_MODULE p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "id" (see GWEN_TEST_MODULE_id)

Definition at line 190 of file testmodule.c.

◆ GWEN_Test_Module_SetName()

void GWEN_Test_Module_SetName ( GWEN_TEST_MODULE p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "name" (see GWEN_TEST_MODULE_name)

Definition at line 196 of file testmodule.c.

References NULL.

Referenced by GWEN_Test_Module_AddModule(), GWEN_Test_Module_AddTest(), and TestFramework_new().

Here is the caller graph for this function:

◆ GWEN_Test_Module_SetParamsDb()

void GWEN_Test_Module_SetParamsDb ( GWEN_TEST_MODULE p_struct,
const GWEN_DB_NODE p_src 
)

Definition at line 232 of file testmodule.c.

References GWEN_DB_Group_dup(), GWEN_DB_Group_free(), and NULL.

Here is the call graph for this function:

◆ GWEN_Test_Module_SetResult()

void GWEN_Test_Module_SetResult ( GWEN_TEST_MODULE p_struct,
int  p_src 
)

Setter. Use this function to set the member "result" (see GWEN_TEST_MODULE_result)

Definition at line 226 of file testmodule.c.

Referenced by _runModule(), and _runTest().

Here is the caller graph for this function:

◆ GWEN_Test_Module_SetTestFn()

GWEN_TEST_MODULE_TEST_FN GWEN_Test_Module_SetTestFn ( GWEN_TEST_MODULE p_struct,
GWEN_TEST_MODULE_TEST_FN  fn 
)

Definition at line 258 of file testmodule.c.

Referenced by GWEN_Test_Module_AddTest().

Here is the caller graph for this function:

◆ GWEN_Test_Module_Test()

int GWEN_Test_Module_Test ( GWEN_TEST_MODULE p_struct)

Returns the list of ABS_ACCOUNT_INFO objects for all known accounts. The caller is responsible for freeing the list returned (if any) via ABS_AccountInfo_List_free.

Definition at line 248 of file testmodule.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by _runTest().

Here is the caller graph for this function:

◆ GWEN_Test_Module_toDb()

int GWEN_Test_Module_toDb ( const GWEN_TEST_MODULE p_struct,
GWEN_DB_NODE p_db 
)

Definition at line 397 of file testmodule.c.

References GWEN_Test_Module_WriteDb().

Here is the call graph for this function:

◆ GWEN_Test_Module_Tree2_GetById()

GWEN_TEST_MODULE* GWEN_Test_Module_Tree2_GetById ( const GWEN_TEST_MODULE p_object,
uint32_t  p_cmp 
)

Definition at line 402 of file testmodule.c.

References NULL.

◆ GWEN_Test_Module_WriteDb()

int GWEN_Test_Module_WriteDb ( const GWEN_TEST_MODULE p_struct,
GWEN_DB_NODE p_db 
)

Definition at line 327 of file testmodule.c.

References DBG_INFO, GWEN_DB_AddGroupChildren(), GWEN_DB_DeleteGroup(), GWEN_DB_DeleteVar(), GWEN_DB_FLAGS_DEFAULT, GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_GetGroup(), GWEN_DB_SetCharValue(), GWEN_DB_SetIntValue(), and GWEN_LOGDOMAIN.

Referenced by GWEN_Test_Module_toDb().

Here is the call graph for this function:
Here is the caller graph for this function: