Motr  M0
seg0.c File Reference
#include "lib/trace.h"
#include "lib/memory.h"
#include "lib/buf.h"
#include "lib/string.h"
#include "be/ut/helper.h"
#include "be/seg0.h"
#include "format/format.h"
#include "ut/ut.h"
Include dependency graph for seg0.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT
 

Functions

static int be_ut_0type_test_init (struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
 
static void be_ut_0type_test_fini (struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
 
static void be_ut_0type_op_test (struct m0_be_ut_backend *ut_be, struct m0_be_0type *zt, const char *suffix, const struct m0_buf *data, bool add)
 
void m0_be_ut_seg0_test (void)
 
void m0_be_ut_obj_test (void)
 

Variables

static const char * be_ut_0type_suffix = "some test suffix"
 
static char be_ut_0type_data [10000]
 
static const struct m0_buf be_ut_0type_data_buf
 
static struct m0_be_0type be_ut_0type_test
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_UT

Definition at line 23 of file seg0.c.

Function Documentation

◆ be_ut_0type_op_test()

static void be_ut_0type_op_test ( struct m0_be_ut_backend ut_be,
struct m0_be_0type zt,
const char *  suffix,
const struct m0_buf data,
bool  add 
)
static

Definition at line 63 of file seg0.c.

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

◆ be_ut_0type_test_fini()

static void be_ut_0type_test_fini ( struct m0_be_domain dom,
const char *  suffix,
const struct m0_buf data 
)
static

Definition at line 49 of file seg0.c.

Here is the call graph for this function:

◆ be_ut_0type_test_init()

static int be_ut_0type_test_init ( struct m0_be_domain dom,
const char *  suffix,
const struct m0_buf data 
)
static

Definition at line 40 of file seg0.c.

Here is the call graph for this function:

◆ m0_be_ut_obj_test()

void m0_be_ut_obj_test ( void  )

Definition at line 106 of file seg0.c.

Here is the call graph for this function:

◆ m0_be_ut_seg0_test()

void m0_be_ut_seg0_test ( void  )

Definition at line 94 of file seg0.c.

Here is the call graph for this function:

Variable Documentation

◆ be_ut_0type_data

char be_ut_0type_data[10000]
static

Definition at line 35 of file seg0.c.

◆ be_ut_0type_data_buf

const struct m0_buf be_ut_0type_data_buf
static
Initial value:
=
static char be_ut_0type_data[10000]
Definition: seg0.c:35
#define M0_BUF_INIT(size, data)
Definition: buf.h:64

Definition at line 36 of file seg0.c.

◆ be_ut_0type_suffix

const char* be_ut_0type_suffix = "some test suffix"
static

Definition at line 34 of file seg0.c.

◆ be_ut_0type_test

struct m0_be_0type be_ut_0type_test
static
Initial value:
= {
.b0_name = "M0_BE:0type_test",
.b0_init = &be_ut_0type_test_init,
.b0_fini = &be_ut_0type_test_fini,
}
static void be_ut_0type_test_fini(struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
Definition: seg0.c:49
static int be_ut_0type_test_init(struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
Definition: seg0.c:40

Definition at line 57 of file seg0.c.