|
gwenhywfar 5.14.1
|
#include <gwenhywfar/types.h>#include <gwenhywfar/tree2.h>#include <gwenhywfar/inherit.h>#include <gwenhywfar/db.h>
Go to the source code of this file.
Typedefs | |
| typedef struct GWEN_TEST_MODULE | GWEN_TEST_MODULE |
| typedef int GWENHYWFAR_CB(* | GWEN_TEST_MODULE_TEST_FN) (GWEN_TEST_MODULE *p_struct) |
| typedef struct GWEN_TEST_MODULE GWEN_TEST_MODULE |
Definition at line 65 of file testmodule.h.
| typedef int GWENHYWFAR_CB(* GWEN_TEST_MODULE_TEST_FN) (GWEN_TEST_MODULE *p_struct) |
Definition at line 75 of file testmodule.h.
| GWENHYWFAR_API 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().

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

| GWENHYWFAR_API void GWEN_Test_Module_Attach | ( | GWEN_TEST_MODULE * | p_struct | ) |
Definition at line 65 of file testmodule.c.
| GWENHYWFAR_API 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.

| GWENHYWFAR_API GWEN_TEST_MODULE * GWEN_Test_Module_dup | ( | const GWEN_TEST_MODULE * | p_struct | ) |
Definition at line 72 of file testmodule.c.
References GWEN_DB_Group_dup(), GWEN_DB_Group_free(), GWEN_Test_Module_new(), and NULL.

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


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

| GWENHYWFAR_API 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.

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

| GWENHYWFAR_API 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.
| GWENHYWFAR_API 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_Test_Module_new(), GWEN_TREE2_INIT, and NULL.
Referenced by GWEN_Test_Module_AddModule(), GWEN_Test_Module_AddTest(), GWEN_Test_Module_dup(), GWEN_Test_Module_fromDb(), GWEN_Test_Module_new(), and TestFramework_new().


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


| GWENHYWFAR_API 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.

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

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

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

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

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

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

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

