Teonet library
0.4.7
|
#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 |
#define kc_emul | ( | ) |
Referenced by test_3_1(), test_3_2(), test_3_3(), test_3_4(), test_3_5(), and test_3_template().
int add_suite_3_tests | ( | void | ) |
Add Teonet DB module tests.
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_2 | ( | ) |
Set default namespace.
References data, ksnTDBClass::defNameSpace, ksnTDBClass::k, kc_emul, ke, ksnTDBdestroy(), ksnTDBgetStr(), ksnTDBinit(), ksnTDBnamespaceRemove(), ksnTDBnamespaceSet(), and ksnTDBsetStr().
Referenced by add_suite_3_tests().
void test_3_3 | ( | ) |
Set and get data.
References data, ksnTDBClass::defNameSpace, ksnTDBClass::k, kc_emul, ke, ksnTDBdeleteStr(), ksnTDBdestroy(), ksnTDBgetStr(), ksnTDBinit(), ksnTDBnamespaceRemove(), ksnTDBnamespaceSet(), ksnTDBsetStr(), and malloc().
Referenced by add_suite_3_tests().
void test_3_4 | ( | ) |
Set and get data without default namespace.
References data, ksnTDBClass::defNameSpace, ksnTDBClass::k, kc_emul, ke, ksnTDBdeleteNsStr(), ksnTDBdestroy(), ksnTDBgetNsStr(), ksnTDBinit(), ksnTDBnamespaceRemove(), and ksnTDBsetNsStr().
Referenced by add_suite_3_tests().
void test_3_5 | ( | ) |
Get list of keys without default namespace.
References ksnTDBClass::defNameSpace, free(), ksnTDBClass::k, kc_emul, ke, ksnet_stringArrCombine(), ksnet_stringArrCreate(), ksnet_stringArrFree(), ksnet_stringArrLength(), ksnTDBdestroy(), ksnTDBinit(), ksnTDBkeyList(), ksnTDBnamespaceRemove(), ksnTDBnamespaceSet(), and ksnTDBsetStr().
Referenced by add_suite_3_tests().
void test_3_template | ( | ) |
Test template.
References kc_emul, ke, ksnTDBdestroy(), and ksnTDBinit().
CU_pSuite pSuite |
Referenced by add_suite_3_tests(), and main().