#include "ut/ut.h"
#include "lib/arith.h"
#include "lib/misc.h"
#include "lib/errno.h"
#include "net/test/service.h"
Go to the source code of this file.
|
static int | service_ut_cmd (void *ctx, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply, enum m0_net_test_cmd_type cmd_type) |
|
static int | service_ut_cmd_init (void *ctx_, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply) |
|
static int | service_ut_cmd_start (void *ctx_, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply) |
|
static int | service_ut_cmd_stop (void *ctx_, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply) |
|
static int | service_ut_cmd_status (void *ctx_, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply) |
|
static void * | service_ut_init (struct m0_net_test_service *svc_) |
|
static void | service_ut_fini (void *ctx) |
|
static int | service_ut_step (void *ctx) |
|
static void | service_ut_checks (struct m0_net_test_service *svc, enum m0_net_test_service_state state) |
|
static void | service_ut_check_reset (void) |
|
static void | service_ut_check_called (int *func_bool) |
|
static bool | service_can_handle (enum m0_net_test_cmd_type cmd_type) |
|
void | m0_net_test_service_ut (void) |
|
◆ anonymous enum
Enumerator |
---|
SERVICE_ITERATIONS_NR | |
Definition at line 30 of file service.c.
◆ m0_net_test_service_ut()
void m0_net_test_service_ut |
( |
void |
| ) |
|
◆ service_can_handle()
◆ service_ut_check_called()
static void service_ut_check_called |
( |
int * |
func_bool | ) |
|
|
static |
◆ service_ut_check_reset()
static void service_ut_check_reset |
( |
void |
| ) |
|
|
static |
◆ service_ut_checks()
◆ service_ut_cmd()
◆ service_ut_cmd_init()
◆ service_ut_cmd_start()
◆ service_ut_cmd_status()
◆ service_ut_cmd_stop()
◆ service_ut_fini()
static void service_ut_fini |
( |
void * |
ctx | ) |
|
|
static |
◆ service_ut_init()
◆ service_ut_step()
static int service_ut_step |
( |
void * |
ctx | ) |
|
|
static |
◆ service_cmd
◆ service_cmd_called
◆ service_cmd_errno
◆ service_fini_called
◆ service_func_called
int* service_func_called[] |
|
static |
Initial value:= {
}
static int service_step_called
static int service_fini_called
static int service_init_called
Definition at line 43 of file service.c.
◆ service_init_called
◆ service_reply
◆ service_step_called
◆ service_ut_cmd_handler
Initial value:= {
{
},
{
},
{
},
{
},
}
static int service_ut_cmd_status(void *ctx_, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply)
static int service_ut_cmd_start(void *ctx_, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply)
static int service_ut_cmd_init(void *ctx_, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply)
static int service_ut_cmd_stop(void *ctx_, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply)
Definition at line 106 of file service.c.
◆ service_ut_ops
Initial value:= {
}
static void * service_ut_init(struct m0_net_test_service *svc_)
static void service_ut_fini(void *ctx)
static int service_ut_step(void *ctx)
static struct m0_net_test_service_cmd_handler service_ut_cmd_handler[]
Definition at line 125 of file service.c.
◆ svc