Motr  M0
rpclib_ut.c File Reference
#include "ut/ut.h"
#include "lib/memory.h"
#include "lib/processor.h"
#include "lib/trace.h"
#include "lib/finject.h"
#include "fop/fop.h"
#include "reqh/reqh.h"
#include "rpc/session.h"
#include "rpc/it/ping_fop.h"
#include "rpc/it/ping_fop_xc.h"
#include "rpc/rpclib.h"
#include "net/lnet/lnet.h"
#include "ut/cs_service.h"
#include "ut/cs_fop.h"
#include "ut/cs_fop_xc.h"
#include "rpc/ut/clnt_srv_ctx.c"
Include dependency graph for rpclib_ut.c:

Go to the source code of this file.

Functions

static void test_m0_rpc_server_start (void)
 
static void test_m0_rpc_client_start (void)
 
static void test_rpclib_error_paths (void)
 
static int send_fop (struct m0_rpc_session *session)
 
static void test_rpclib (void)
 
static int test_rpclib_init (void)
 
static int test_rpclib_fini (void)
 

Variables

struct m0_ut_suite rpclib_ut
 

Function Documentation

◆ send_fop()

static int send_fop ( struct m0_rpc_session session)
static

Definition at line 98 of file rpclib_ut.c.

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

◆ test_m0_rpc_client_start()

static void test_m0_rpc_client_start ( void  )
static

Definition at line 59 of file rpclib_ut.c.

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

◆ test_m0_rpc_server_start()

static void test_m0_rpc_server_start ( void  )
static

Definition at line 44 of file rpclib_ut.c.

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

◆ test_rpclib()

static void test_rpclib ( void  )
static

Definition at line 125 of file rpclib_ut.c.

Here is the call graph for this function:

◆ test_rpclib_error_paths()

static void test_rpclib_error_paths ( void  )
static

Definition at line 87 of file rpclib_ut.c.

Here is the call graph for this function:

◆ test_rpclib_fini()

static int test_rpclib_fini ( void  )
static

Definition at line 164 of file rpclib_ut.c.

Here is the call graph for this function:

◆ test_rpclib_init()

static int test_rpclib_init ( void  )
static

Definition at line 156 of file rpclib_ut.c.

Here is the call graph for this function:

Variable Documentation

◆ rpclib_ut

struct m0_ut_suite rpclib_ut
Initial value:
= {
.ts_name = "rpc-lib-ut",
.ts_init = test_rpclib_init,
.ts_fini = test_rpclib_fini,
.ts_tests = {
{ "rpclib", test_rpclib },
{ "rpclib_error_paths", test_rpclib_error_paths },
{ NULL, NULL }
}
}
static void test_rpclib_error_paths(void)
Definition: rpclib_ut.c:87
#define NULL
Definition: misc.h:38
static int test_rpclib_fini(void)
Definition: rpclib_ut.c:164
static int test_rpclib_init(void)
Definition: rpclib_ut.c:156
static void test_rpclib(void)
Definition: rpclib_ut.c:125

Definition at line 170 of file rpclib_ut.c.