Go to the source code of this file.
|
static int | noop_submit (const struct m0_addb2_mach *m, struct m0_addb2_trace *t) |
|
static void | test_fire (const struct m0_addb2_source *s, const struct m0_addb2_philter *p, const struct m0_addb2_callback *c, const struct m0_addb2_record *r) |
|
static void | source_get (void) |
|
static void | source_put (void) |
|
static void | cmp_fire (const struct m0_addb2_source *s, const struct m0_addb2_philter *p, const struct m0_addb2_callback *c, const struct m0_addb2_record *r) |
|
static void | empty (void) |
|
static void | empty_push_pop (void) |
|
static void | data (void) |
|
static void | data_label (void) |
|
static void | sensor (void) |
|
static void | sensor_N (void) |
|
static void | sensor_check_fire (const struct m0_addb2_source *s, const struct m0_addb2_philter *p, const struct m0_addb2_callback *c, const struct m0_addb2_record *r) |
|
static void | id_philter (void) |
|
static void | global_philter (void) |
|
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
◆ anonymous enum
◆ cmp_fire()
◆ data()
static void data |
( |
void |
| ) |
|
|
static |
"data" test: add a record, check that it is returned to the consumer.
Definition at line 141 of file consumer.c.
◆ data_label()
static void data_label |
( |
void |
| ) |
|
|
static |
"data-label" test: create a context, add records; check that records are returned with correct labels.
Definition at line 165 of file consumer.c.
◆ empty()
static void empty |
( |
void |
| ) |
|
|
static |
"empty" test: check that empty trace is empty.
Definition at line 101 of file consumer.c.
◆ empty_push_pop()
static void empty_push_pop |
( |
void |
| ) |
|
|
static |
"empty-push-pop" test: check that trace with context manipulations only contains no records.
Definition at line 120 of file consumer.c.
◆ global_philter()
static void global_philter |
( |
void |
| ) |
|
|
static |
"global-philter" test: check that m0_addb2_philter_global_{add,del}() manipulate global philter list.
Definition at line 360 of file consumer.c.
◆ id_philter()
static void id_philter |
( |
void |
| ) |
|
|
static |
"id-philter" test: create a context, add a sensor, add a number of records. Create an id-philter for the sensor, check that the philter sees all sensor read outs.
Definition at line 316 of file consumer.c.
◆ noop_submit()
◆ sensor()
static void sensor |
( |
void |
| ) |
|
|
static |
"sensor" test: create a context, add a sensor; check that the sensor readings are returned correctly.
Definition at line 243 of file consumer.c.
◆ sensor_check_fire()
◆ sensor_N()
static void sensor_N |
( |
void |
| ) |
|
|
static |
"sensor-N" test: create a context, add a sensor, force the trace buffer to completion; check that the sensor readings are reproduced.
Definition at line 268 of file consumer.c.
◆ source_get()
static void source_get |
( |
void |
| ) |
|
|
static |
◆ source_put()
static void source_put |
( |
void |
| ) |
|
|
static |
◆ test_fire()
◆ addb2_consumer_ut
Initial value:= {
.ts_name = "addb2-consumer",
.ts_tests = {
}
}
static void id_philter(void)
static void empty_push_pop(void)
static void global_philter(void)
static void sensor_N(void)
static void data_label(void)
Definition at line 391 of file consumer.c.
◆ fire
◆ fired
◆ payload
◆ sen
◆ shouldbe