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

Macros

#define kc_emul()
 Emulate ksnetEvMgrClass. More...
 

Functions

int teoSScrNumberOfSubscribers (teoSScrClass *sscr)
 Calculate number of subscriptions. More...
 
void test_6_1 ()
 Initialize/Destroy module class. More...
 
void test_6_2 ()
 Test Subscribe/UnSubscribe. More...
 
int add_suite_6_tests (void)
 Add Subscribe module tests. More...
 

Variables

CU_pSuite pSuite
 

Macro Definition Documentation

#define kc_emul ( )
Value:
ksnetEvMgrClass *ke = &ke_obj; \
ke->ev_loop = ev_loop_new (0); \
memset(&ke_obj.teo_cfg, 0 , sizeof(ke_obj.teo_cfg))
struct ksnetEvMgrClass ksnetEvMgrClass
KSNet event manager functions data.
teonet_cfg teo_cfg
KSNet configuration.
Definition: ev_mgr.h:261
#define ke
KSNet event manager functions data.
Definition: ev_mgr.h:245

Emulate ksnetEvMgrClass.

Referenced by test_6_1(), and test_6_2().

Function Documentation

int add_suite_6_tests ( void  )

Add Subscribe module tests.

Returns

References pSuite, test_6_1(), and test_6_2().

Referenced by main().

int teoSScrNumberOfSubscribers ( teoSScrClass sscr)

Calculate number of subscriptions.

Parameters
sscr
Returns

References teoSScrClass::map.

Referenced by teoSScrSubscription(), teoSScrUnSubscription(), and test_6_2().

void test_6_1 ( )

Initialize/Destroy module class.

References kc_emul, ke, teoSScrClass::map, teoSScrDestroy(), and teoSScrInit().

Referenced by add_suite_6_tests().

Variable Documentation

CU_pSuite pSuite

Referenced by add_suite_6_tests().