Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
test_teodb.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <CUnit/Basic.h>
#include "ev_mgr.h"
#include "modules/teodb.h"

Macros

#define kc_emul()
 

Functions

void test_3_1 ()
 Initialize/Destroy Teonet DB module. More...
 
void test_3_2 ()
 Set default namespace. More...
 
void test_3_3 ()
 Set and get data. More...
 
void test_3_4 ()
 Set and get data without default namespace. More...
 
void test_3_5 ()
 Get list of keys without default namespace. More...
 
void test_3_template ()
 Test template. More...
 
int add_suite_3_tests (void)
 Add Teonet DB module tests. More...
 

Variables

CU_pSuite pSuite
 

Macro Definition Documentation

#define kc_emul ( )
Value:
ksnetEvMgrClass *ke = &ke_obj
struct ksnetEvMgrClass ksnetEvMgrClass
KSNet event manager functions data.
#define ke
KSNet event manager functions data.
Definition: ev_mgr.h:245

Referenced by test_3_1(), test_3_2(), test_3_3(), test_3_4(), test_3_5(), and test_3_template().

Function Documentation

int add_suite_3_tests ( void  )

Add Teonet DB module tests.

Returns

References pSuite, test_3_1(), test_3_2(), test_3_3(), test_3_4(), and test_3_5().

Referenced by main().

void test_3_1 ( )

Initialize/Destroy Teonet DB module.

References ksnTDBClass::defNameSpace, ksnTDBClass::k, kc_emul, ke, ksnTDBdestroy(), and ksnTDBinit().

Referenced by add_suite_3_tests().

void test_3_4 ( )
void test_3_template ( )

Test template.

References kc_emul, ke, ksnTDBdestroy(), and ksnTDBinit().

Variable Documentation

CU_pSuite pSuite

Referenced by add_suite_3_tests(), and main().