|
gwenhywfar 5.12.0
|
#include <gwenhywfar/buffer.h>#include <gwenhywfar/base64.h>#include <gwenhywfar/debug.h>#include <gwenhywfar/padd.h>#include <gwenhywfar/cgui.h>#include <gwenhywfar/directory.h>#include <gwenhywfar/list.h>#include <gwenhywfar/pathmanager.h>#include <gwenhywfar/gwendate.h>#include <gwenhywfar/syncio.h>#include <gwenhywfar/json.h>#include <gwenhywfar/json_read.h>#include <gwenhywfar/json_dump.h>#include <errno.h>#include "gwenhywfar.h"
Go to the source code of this file.
Macros | |
| #define | ASSERT(expr) |
| #define | MAX_PATH 200 |
Functions | |
| int | check1 () |
| int | check2 () |
| int | check_constlist () |
| int | check_directory () |
| int | check_list () |
| int | main (int argc, char **argv) |
| int | print_paths () |
| void * | printfunc (const char *s, void *u) |
| int | test_date () |
| int | test_gui (GWEN_UNUSED int test_with_interaction) |
| int | test_json (const char *fname, const char *sSearch) |
| #define ASSERT | ( | expr | ) |
Definition at line 154 of file testlib.c.
Referenced by check_constlist(), and check_list().
| #define MAX_PATH 200 |
Definition at line 128 of file testlib.c.
Referenced by check_directory().
| int check1 | ( | ) |
Definition at line 21 of file testlib.c.
References GWEN_Base64_Decode(), GWEN_Base64_Encode(), GWEN_Buffer_Dump(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), and GWEN_Buffer_new().
Referenced by main().


| int check2 | ( | ) |
Definition at line 279 of file testlib.c.
References GWEN_Buffer_AppendBuffer(), GWEN_Buffer_AppendString(), GWEN_Buffer_Dump(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_Buffer_new(), GWEN_Padd_PaddWithIso9796_2(), and GWEN_Padd_UnpaddWithIso9796_2().
Referenced by main().


| int check_constlist | ( | ) |
Definition at line 209 of file testlib.c.
References ASSERT, GWEN_ConstList_Clear(), GWEN_ConstList_First(), GWEN_ConstList_free(), GWEN_ConstList_GetBack(), GWEN_ConstList_GetFront(), GWEN_ConstList_GetSize(), GWEN_ConstList_new(), GWEN_ConstList_PopBack(), GWEN_ConstList_PushBack(), GWEN_ConstList_PushFront(), GWEN_ConstListIterator_Data(), GWEN_ConstListIterator_free(), GWEN_ConstListIterator_Next(), and GWEN_ConstListIterator_Previous().
Referenced by main().


| int check_directory | ( | ) |
Definition at line 130 of file testlib.c.
References GWEN_Directory_Close(), GWEN_Directory_free(), GWEN_Directory_GetTmpDirectory(), GWEN_Directory_new(), GWEN_Directory_Open(), and MAX_PATH.
Referenced by main().


| int check_list | ( | ) |
Definition at line 157 of file testlib.c.
References ASSERT, GWEN_List_Clear(), GWEN_List_Erase(), GWEN_List_First(), GWEN_List_free(), GWEN_List_GetBack(), GWEN_List_GetFront(), GWEN_List_GetSize(), GWEN_List_new(), GWEN_List_PopBack(), GWEN_List_PushBack(), GWEN_List_PushFront(), GWEN_List_Remove(), GWEN_ListIterator_Data(), GWEN_ListIterator_free(), GWEN_ListIterator_Next(), and GWEN_ListIterator_Previous().
Referenced by main().


| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 401 of file testlib.c.
References check1(), check2(), check_constlist(), check_directory(), check_list(), print_paths(), test_date(), test_gui(), and test_json().

| int print_paths | ( | ) |
Definition at line 258 of file testlib.c.
References GWEN_PathManager_GetPaths(), GWEN_PM_DATADIR, GWEN_PM_LIBNAME, GWEN_PM_LOCALEDIR, GWEN_PM_PLUGINDIR, GWEN_PM_SYSCONFDIR, GWEN_StringList_Count(), GWEN_StringList_ForEach(), and printfunc().
Referenced by main().


| void * printfunc | ( | const char * | s, |
| void * | u ) |
Definition at line 252 of file testlib.c.
Referenced by print_paths().

| int test_date | ( | ) |
Definition at line 337 of file testlib.c.
References GWEN_Date_Compare(), GWEN_Date_CurrentDate(), GWEN_Date_fromLocalTime(), GWEN_Date_GetString(), and GWEN_Date_toLocalTime().
Referenced by main().


| int test_gui | ( | GWEN_UNUSED int | test_with_interaction | ) |
Definition at line 81 of file testlib.c.
References GWEN_Gui_AddFlags(), GWEN_Gui_CGui_new(), GWEN_GUI_FLAGS_NONINTERACTIVE, GWEN_Gui_free(), GWEN_Gui_HideBox(), GWEN_Gui_InputBox(), GWEN_Gui_MessageBox(), GWEN_Gui_SetGui(), GWEN_Gui_ShowBox(), GWEN_UNUSED, and NULL.
Referenced by main().


| int test_json | ( | const char * | fname, |
| const char * | sSearch ) |
Definition at line 362 of file testlib.c.
References GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Buffer_Reset(), GWEN_JsonElement_DumpToBuffer(), GWEN_JsonElement_fromString(), GWEN_JsonElement_GetElementByPath(), GWEN_SyncIo_Helper_ReadFile(), and NULL.
Referenced by main().

