Motr  M0
cache.c File Reference
#include "conf/cache.h"
#include "conf/obj_ops.h"
#include "conf/preload.h"
#include "conf/onwire.h"
#include "conf/dir.h"
#include "conf/ut/common.h"
#include "lib/buf.h"
#include "lib/errno.h"
#include "lib/fs.h"
#include "lib/memory.h"
#include "ut/misc.h"
#include "ut/ut.h"
Include dependency graph for cache.c:

Go to the source code of this file.

Functions

static void test_obj_xtors (void)
 
static void ut_conf_obj_create (const struct m0_fid *fid, struct m0_conf_obj **result)
 
static void ut_conf_obj_delete (struct m0_conf_obj *obj)
 
static void test_dir_add_del (void)
 
static void test_cache (void)
 
static void test_obj_find (void)
 
static void test_obj_fill (void)
 

Variables

struct m0_ut_suite conf_ut
 

Function Documentation

◆ test_cache()

static void test_cache ( void  )
static

Definition at line 104 of file cache.c.

Here is the call graph for this function:

◆ test_dir_add_del()

static void test_dir_add_del ( void  )
static

Definition at line 86 of file cache.c.

Here is the call graph for this function:

◆ test_obj_fill()

static void test_obj_fill ( void  )
static

Definition at line 155 of file cache.c.

Here is the call graph for this function:

◆ test_obj_find()

static void test_obj_find ( void  )
static

Definition at line 131 of file cache.c.

Here is the call graph for this function:

◆ test_obj_xtors()

static void test_obj_xtors ( void  )
static

Definition at line 36 of file cache.c.

Here is the call graph for this function:

◆ ut_conf_obj_create()

static void ut_conf_obj_create ( const struct m0_fid fid,
struct m0_conf_obj **  result 
)
static

Definition at line 55 of file cache.c.

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

◆ ut_conf_obj_delete()

static void ut_conf_obj_delete ( struct m0_conf_obj obj)
static

Definition at line 76 of file cache.c.

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

Variable Documentation

◆ conf_ut

struct m0_ut_suite conf_ut
Initial value:
= {
.ts_name = "conf-ut",
.ts_tests = {
{ "obj-xtors", test_obj_xtors },
{ "cache", test_cache },
{ "obj-find", test_obj_find },
{ "obj-fill", test_obj_fill },
{ "dir-add-del", test_dir_add_del },
{ NULL, NULL }
}
}
M0_INTERNAL int m0_conf_ut_cache_init(void)
Definition: common.c:107
#define NULL
Definition: misc.h:38
static void test_obj_xtors(void)
Definition: cache.c:36
static void test_obj_fill(void)
Definition: cache.c:155
M0_INTERNAL int m0_conf_ut_cache_fini(void)
Definition: common.c:114
static void test_obj_find(void)
Definition: cache.c:131
static void test_cache(void)
Definition: cache.c:104
static void test_dir_add_del(void)
Definition: cache.c:86

Definition at line 186 of file cache.c.