Motr  M0
filter_eval.c File Reference
#include "lib/errno.h"
#include "lib/memory.h"
#include "fdmi/filter.h"
#include "fdmi/filter_xc.h"
#include "fdmi/flt_eval.h"
#include "lib/finject.h"
#include "xcode/xcode.h"
#include "ut/ut.h"
#include "conf/obj.h"
Include dependency graph for filter_eval.c:

Go to the source code of this file.

Functions

static int flt_eval_binary_operator (enum m0_fdmi_flt_op_code op_code, struct m0_fdmi_flt_node *opnd1, struct m0_fdmi_flt_node *opnd2, struct m0_fdmi_eval_ctx *eval_ctx)
 
static void flt_eval_simple_or (void)
 
static void flt_eval_simple_gt (void)
 
static int flt_test_op_cb (struct m0_fdmi_flt_operands *opnds, struct m0_fdmi_flt_operand *res)
 
static void flt_set_op_cb (void)
 
static void flt_eval_flt_xcode_str (void)
 
static void flt_str_ops (void)
 

Variables

static bool flt_test_op_cb_called = false
 
struct m0_ut_suite fdmi_filter_eval_ut
 

Function Documentation

◆ flt_eval_binary_operator()

static int flt_eval_binary_operator ( enum m0_fdmi_flt_op_code  op_code,
struct m0_fdmi_flt_node opnd1,
struct m0_fdmi_flt_node opnd2,
struct m0_fdmi_eval_ctx eval_ctx 
)
static

Definition at line 37 of file filter_eval.c.

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

◆ flt_eval_flt_xcode_str()

static void flt_eval_flt_xcode_str ( void  )
static

Definition at line 231 of file filter_eval.c.

Here is the call graph for this function:

◆ flt_eval_simple_gt()

static void flt_eval_simple_gt ( void  )
static

Definition at line 89 of file filter_eval.c.

Here is the call graph for this function:

◆ flt_eval_simple_or()

static void flt_eval_simple_or ( void  )
static

Definition at line 62 of file filter_eval.c.

Here is the call graph for this function:

◆ flt_set_op_cb()

static void flt_set_op_cb ( void  )
static

Definition at line 192 of file filter_eval.c.

Here is the call graph for this function:

◆ flt_str_ops()

static void flt_str_ops ( void  )
static

Definition at line 271 of file filter_eval.c.

Here is the call graph for this function:

◆ flt_test_op_cb()

static int flt_test_op_cb ( struct m0_fdmi_flt_operands opnds,
struct m0_fdmi_flt_operand res 
)
static

Definition at line 184 of file filter_eval.c.

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

Variable Documentation

◆ fdmi_filter_eval_ut

struct m0_ut_suite fdmi_filter_eval_ut
Initial value:
= {
.ts_name = "fdmi-filter-eval-ut",
.ts_tests = {
{ "simple-or", flt_eval_simple_or },
{ "simple-gt", flt_eval_simple_gt },
{ "callback", flt_set_op_cb },
{ "filter-xcode-str", flt_eval_flt_xcode_str },
{ "filter-str-ops", flt_str_ops },
{ NULL, NULL },
},
}
#define NULL
Definition: misc.h:38
static void flt_str_ops(void)
Definition: filter_eval.c:271
static void flt_set_op_cb(void)
Definition: filter_eval.c:192
static void flt_eval_flt_xcode_str(void)
Definition: filter_eval.c:231
static void flt_eval_simple_or(void)
Definition: filter_eval.c:62
static void flt_eval_simple_gt(void)
Definition: filter_eval.c:89

Definition at line 397 of file filter_eval.c.

◆ flt_test_op_cb_called

bool flt_test_op_cb_called = false
static

Definition at line 182 of file filter_eval.c.