#include "lib/trace.h"
#include "ut/ut.h"
#include "motr/ut/client.h"
#include "lib/finject.h"
#include "motr/idx.c"
Go to the source code of this file.
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CLIENT |
Definition at line 23 of file idx.c.
◆ idx_dummy_query()
static int idx_dummy_query |
( |
struct m0_op_idx * |
oi | ) |
|
|
static |
◆ ut__idx_op_invariant()
static void ut__idx_op_invariant |
( |
void |
| ) |
|
|
static |
◆ ut_idx_fini()
M0_INTERNAL int ut_idx_fini |
( |
void |
| ) |
|
◆ ut_idx_init()
M0_INTERNAL int ut_idx_init |
( |
void |
| ) |
|
◆ ut_idx_op_ast_complete()
static void ut_idx_op_ast_complete |
( |
void |
| ) |
|
|
static |
◆ ut_idx_op_ast_fail()
static void ut_idx_op_ast_fail |
( |
void |
| ) |
|
|
static |
◆ ut_idx_op_cb_fini()
static void ut_idx_op_cb_fini |
( |
void |
| ) |
|
|
static |
◆ ut_idx_op_cb_free()
static void ut_idx_op_cb_free |
( |
void |
| ) |
|
|
static |
◆ ut_idx_op_cb_launch()
static void ut_idx_op_cb_launch |
( |
void |
| ) |
|
|
static |
◆ ut_idx_op_complete()
static void ut_idx_op_complete |
( |
void |
| ) |
|
|
static |
Tests idx_op_complete().
Definition at line 128 of file idx.c.
◆ ut_idx_op_fail()
static void ut_idx_op_fail |
( |
void |
| ) |
|
|
static |
◆ ut_idx_op_init()
static void ut_idx_op_init |
( |
void |
| ) |
|
|
static |
Tests base case and preconditions of m0_idx_op_init().
Definition at line 88 of file idx.c.
◆ ut_m0_idx_fini()
static void ut_m0_idx_fini |
( |
void |
| ) |
|
|
static |
◆ ut_m0_idx_init()
static void ut_m0_idx_init |
( |
void |
| ) |
|
|
static |
Tests the pre and post conditions of the m0_idx_init() entry point. Also checks the object is correctly initialised. The testee is seen as a black box that has to react as expected to some specific input and generate some valid output.
Definition at line 550 of file idx.c.
◆ ut_m0_idx_op()
static void ut_m0_idx_op |
( |
void |
| ) |
|
|
static |
◆ ut_m0_idx_op_namei()
static void ut_m0_idx_op_namei |
( |
void |
| ) |
|
|
static |
◆ ut_m0_idx_service_config()
static void ut_m0_idx_service_config |
( |
void |
| ) |
|
|
static |
◆ ut_m0_op_idx_alloc()
static struct m0_op_idx* ut_m0_op_idx_alloc |
( |
| ) |
|
|
static |
Definition at line 40 of file idx.c.
◆ ut_m0_op_idx_free()
static void ut_m0_op_idx_free |
( |
struct m0_op_idx * |
oi | ) |
|
|
static |
Definition at line 57 of file idx.c.
◆ dummy_instance
Definition at line 38 of file idx.c.
◆ dummy_query_rc
◆ idx_dummy_query_ops
Initial value:= {
}
static int idx_dummy_query(struct m0_op_idx *oi)
Definition at line 260 of file idx.c.
◆ idx_dummy_service
◆ ut_suite_idx
Definition at line 36 of file idx.c.