Motr  M0
service.c File Reference
#include "lib/memory.h"
#include "lib/misc.h"
#include "ut/ut.h"
#include "fop/fop.h"
#include "fop/fom_generic.h"
#include "reqh/reqh.h"
#include "reqh/reqh_service.h"
#include "reqh/ut/service.h"
#include "reqh/ut/service_xc.h"
#include "rpc/rpc_opcodes.h"
#include "ut/cs_service.h"
#include "ut/cs_fop.h"
#include "ut/ut_rpc_machine.h"
#include "reqh/ut/reqhut_fom.c"
Include dependency graph for service.c:

Go to the source code of this file.

Macros

#define DUMMY_DBNAME   "dummy-db"
 
#define DUMMY_COB_ID   20
 
#define DUMMY_SERVER_ADDR   "0@lo:12345:34:10"
 

Enumerations

enum  { MAX_REQH_UT_FOP = 25 }
 

Functions

static int m0_reqhut_fop_init (void)
 
static void m0_reqhut_fop_fini (void)
 
static void test_service (void)
 

Variables

static struct m0_ut_rpc_mach_ctx rmach_ctx
 
static struct m0_fop_type m0_reqhut_dummy_fopt
 
struct m0_ut_suite reqh_service_ut
 

Macro Definition Documentation

◆ DUMMY_COB_ID

#define DUMMY_COB_ID   20

Definition at line 41 of file service.c.

◆ DUMMY_DBNAME

#define DUMMY_DBNAME   "dummy-db"

Definition at line 40 of file service.c.

◆ DUMMY_SERVER_ADDR

#define DUMMY_SERVER_ADDR   "0@lo:12345:34:10"

Definition at line 42 of file service.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_REQH_UT_FOP 

Definition at line 47 of file service.c.

Function Documentation

◆ m0_reqhut_fop_fini()

static void m0_reqhut_fop_fini ( void  )
static

Definition at line 66 of file service.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_reqhut_fop_init()

static int m0_reqhut_fop_init ( void  )
static

Definition at line 51 of file service.c.

Here is the caller graph for this function:

◆ test_service()

static void test_service ( void  )
static

Definition at line 72 of file service.c.

Here is the call graph for this function:

Variable Documentation

◆ m0_reqhut_dummy_fopt

struct m0_fop_type m0_reqhut_dummy_fopt
static

Definition at line 45 of file service.c.

◆ reqh_service_ut

struct m0_ut_suite reqh_service_ut
Initial value:
= {
.ts_name = "reqh-service-ut",
.ts_init = NULL,
.ts_fini = NULL,
.ts_tests = {
{ "reqh service", test_service },
{ NULL, NULL }
}
}
#define NULL
Definition: misc.h:38
static void test_service(void)
Definition: service.c:72

Definition at line 117 of file service.c.

◆ rmach_ctx

struct m0_ut_rpc_mach_ctx rmach_ctx
static

Definition at line 44 of file service.c.