Motr  M0
fol.c File Reference
#include "be/tx.h"
#include "fol/fol.h"
#include "fol/fol_private.h"
#include "fol/fol_xc.h"
#include "ut/be.h"
#include "be/ut/helper.h"
#include "fid/fid_xc.h"
#include "rpc/rpc_opcodes.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "ut/ut.h"
#include "lib/ub.h"
Include dependency graph for fol.c:

Go to the source code of this file.

Enumerations

enum  { UB_ITER = 100000 }
 

Functions

static int verify_frag_data (struct m0_fol_frag *frag, struct m0_be_tx *tx)
 
 M0_FOL_FRAG_TYPE_DECLARE (ut_frag, static, verify_frag_data, NULL, NULL, NULL)
 
static void test_init (void)
 
static void test_fini (void)
 
static void test_fol_frag_type_reg (void)
 
static void test_fol_frag_type_unreg (void)
 
static void test_fol_frag_encdec (void)
 
static int ub_init (const char *opts M0_UNUSED)
 
static void ub_fini (void)
 

Variables

static struct m0_fol g_fol
 
static struct m0_fol_rec g_rec
 
static struct m0_be_ut_backend g_ut_be
 
static struct m0_be_ut_seg g_ut_seg
 
static struct m0_be_tx g_tx
 
struct m0_ut_suite fol_ut
 
struct m0_ub_set m0_fol_ub
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
UB_ITER 

Definition at line 159 of file fol.c.

Function Documentation

◆ M0_FOL_FRAG_TYPE_DECLARE()

M0_FOL_FRAG_TYPE_DECLARE ( ut_frag  ,
static  ,
verify_frag_data  ,
NULL  ,
NULL  ,
NULL   
)

◆ test_fini()

static void test_fini ( void  )
static

Definition at line 65 of file fol.c.

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

◆ test_fol_frag_encdec()

static void test_fol_frag_encdec ( void  )
static

Definition at line 102 of file fol.c.

Here is the call graph for this function:

◆ test_fol_frag_type_reg()

static void test_fol_frag_type_reg ( void  )
static

Definition at line 72 of file fol.c.

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

◆ test_fol_frag_type_unreg()

static void test_fol_frag_type_unreg ( void  )
static

Definition at line 83 of file fol.c.

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

◆ test_init()

static void test_init ( void  )
static

Definition at line 50 of file fol.c.

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

◆ ub_fini()

static void ub_fini ( void  )
static

Definition at line 168 of file fol.c.

Here is the call graph for this function:

◆ ub_init()

static int ub_init ( const char *opts  M0_UNUSED)
static

Definition at line 161 of file fol.c.

Here is the call graph for this function:

◆ verify_frag_data()

static int verify_frag_data ( struct m0_fol_frag frag,
struct m0_be_tx tx 
)
static

Definition at line 91 of file fol.c.

Variable Documentation

◆ fol_ut

struct m0_ut_suite fol_ut
Initial value:
= {
.ts_name = "fol-ut",
.ts_init = NULL,
.ts_fini = NULL,
.ts_tests = {
{ "fol-init", test_init },
{ "fol-frag-type-reg", test_fol_frag_type_reg },
{ "fol-frag-test", test_fol_frag_encdec },
{ "fol-frag-type-unreg", test_fol_frag_type_unreg },
{ "fol-fini", test_fini },
{ NULL, NULL }
}
}
#define NULL
Definition: misc.h:38
static void test_fol_frag_type_reg(void)
Definition: fol.c:72
static void test_fini(void)
Definition: fol.c:65
static void test_fol_frag_encdec(void)
Definition: fol.c:102
static void test_init(void)
Definition: fol.c:50
static void test_fol_frag_type_unreg(void)
Definition: fol.c:83

Definition at line 137 of file fol.c.

◆ g_fol

struct m0_fol g_fol
static

Definition at line 39 of file fol.c.

◆ g_rec

struct m0_fol_rec g_rec
static

Definition at line 40 of file fol.c.

◆ g_tx

struct m0_be_tx g_tx
static

Definition at line 43 of file fol.c.

◆ g_ut_be

struct m0_be_ut_backend g_ut_be
static

Definition at line 41 of file fol.c.

◆ g_ut_seg

struct m0_be_ut_seg g_ut_seg
static

Definition at line 42 of file fol.c.

◆ m0_fol_ub

struct m0_ub_set m0_fol_ub
Initial value:
= {
.us_name = "fol-ub",
.us_init = ub_init,
.us_fini = ub_fini,
.us_run = {
{ .ub_name = NULL }
}
}
#define NULL
Definition: misc.h:38
static void ub_fini(void)
Definition: fol.c:168
static int ub_init(const char *opts M0_UNUSED)
Definition: fol.c:161

Definition at line 220 of file fol.c.