gwenhywfar  4.99.8beta
Macros | Functions
testlib.c File Reference
#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 <errno.h>
#include "gwenhywfar.h"
Include dependency graph for testlib.c:

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 (int test_with_interaction)
 

Macro Definition Documentation

#define ASSERT (   expr)
Value:
if (!(expr)) \
{ printf("FAILED assertion in " __FILE__ ": %d: " #expr "\n", \
__LINE__); return -1; }

Definition at line 145 of file testlib.c.

Referenced by check_constlist(), and check_list().

#define MAX_PATH   200

Definition at line 120 of file testlib.c.

Referenced by check_directory().

Function Documentation

int check1 ( )

Definition at line 17 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().

Here is the call graph for this function:

Here is the caller graph for this function:

int check2 ( )

Definition at line 266 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().

Here is the call graph for this function:

Here is the caller graph for this function:

int check_constlist ( )
int check_directory ( )

Definition at line 122 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().

Here is the call graph for this function:

Here is the caller graph for this function:

int check_list ( )
int main ( int  argc,
char **  argv 
)

Definition at line 347 of file testlib.c.

References check1(), check2(), check_constlist(), check_directory(), check_list(), print_paths(), test_date(), and test_gui().

Here is the call graph for this function:

int print_paths ( )

Definition at line 246 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().

Here is the call graph for this function:

Here is the caller graph for this function:

void* printfunc ( const char *  s,
void *  u 
)

Definition at line 241 of file testlib.c.

Referenced by print_paths().

Here is the caller graph for this function:

int test_date ( )

Definition at line 323 of file testlib.c.

References GWEN_Date_Compare(), GWEN_Date_CurrentDate(), GWEN_Date_fromLocalTime(), GWEN_Date_GetString(), and GWEN_Date_toLocalTime().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int test_gui ( int  test_with_interaction)

Definition at line 76 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(), and NULL.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: