Interface of unit test with Trazer application.
More...
#include "unity_fixture.h"
#include "rkh.h"
Go to the source code of this file.
|
void | unitrazer_start (void) |
| Establish the preconditions to the tests.
|
|
void | unitrazer_cleanup (void) |
| Return the system under test to its initial state after the test.
|
|
void | unitrazer_verify (void) |
| Makes sure there are no unused expectations, if there are, this function causes the test to fail.
|
|
void | unitrazer_expect_wSymArg (UNITY_LINE_TYPE cmockLine, RKH_TE_ID_T trcEvt, rui8_t nArgs,...) |
| Identifies the trace event to expect with one or more arguments. More...
|
|
void | unitrazer_expect_wNumArg (UNITY_LINE_TYPE cmockLine, RKH_TE_ID_T trcEvt, rui8_t nArgs,...) |
| Identifies the trace event to expect with one or more arguments. More...
|
|
void | unitrazer_expect_wSig (UNITY_LINE_TYPE cmockLine, RKH_TE_ID_T trcEvt, RKH_SIG_T signal) |
| Identifies the trace event to expect and one signal argument. More...
|
|
void | unitrazer_expect_noArgs (UNITY_LINE_TYPE cmockLine, RKH_TE_ID_T trcEvt) |
| Identifies the trace event to expect without arguments. More...
|
|
void | unitrazer_expectAnyArgs (UNITY_LINE_TYPE cmockLine, rui8_t trcEvt) |
| Expect a specific trace event regardless its arguments. More...
|
|
void | unitrazer_sm_exeAct_expect (UNITY_LINE_TYPE cmockLine, rui8_t actType, RKH_ST_T *state, void *action) |
| Expect for RKH_TE_SM_EXE_ACT trace event. More...
|
|
void | unitrazer_sm_dch_expect (UNITY_LINE_TYPE cmockLine, RKH_SIG_T signal, RKH_ST_T *state) |
| Expect for RKH_TE_SM_DCH trace event. More...
|
|
void | unitrazer_ignore (UNITY_LINE_TYPE cmockLine, rui8_t trcEvt) |
| Ignore a specific trace event. More...
|
|
void | unitrazer_ignoreArg (UNITY_LINE_TYPE cmockLine, rui8_t trcEvt, rui8_t noArg) |
| Adds the ability to specify specifc arguments to ignore for a produced trace event, instead of ignoring all the arguments or the entire generated trace event, as the unitrazer_ignore() function supports. More...
|
|
void | unitrazer_ignoreGroup (UNITY_LINE_TYPE cmockLine, RKH_TG_T group) |
| Force to ignore every produced trace event from a specifc trace group. More...
|
|
Interface of unit test with Trazer application.
Definition in file unitrazer.h.
void unitrazer_expect_wSymArg |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
RKH_TE_ID_T |
trcEvt, |
|
|
rui8_t |
nArgs, |
|
|
|
... |
|
) |
| |
Identifies the trace event to expect with one or more arguments.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | trcEvt | trace event to expect |
[in] | nArgs | number of trace event arguments |
[in] | ... | list of arguments |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to expect.
void unitrazer_expect_wNumArg |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
RKH_TE_ID_T |
trcEvt, |
|
|
rui8_t |
nArgs, |
|
|
|
... |
|
) |
| |
Identifies the trace event to expect with one or more arguments.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | trcEvt | trace event to expect |
[in] | nArgs | number of trace event arguments |
[in] | ... | list of arguments |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to expect.
Identifies the trace event to expect and one signal argument.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | trcEvt | trace event to expect |
[in] | signal | argument of trace event with signal |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to expect.
void unitrazer_expect_noArgs |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
RKH_TE_ID_T |
trcEvt |
|
) |
| |
Identifies the trace event to expect without arguments.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | trcEvt | trace event to expect |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to expect.
void unitrazer_expectAnyArgs |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
rui8_t |
trcEvt |
|
) |
| |
Expect a specific trace event regardless its arguments.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | trcEvt | produced trace event to expect but it ignores its arguments |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to expect.
void unitrazer_sm_exeAct_expect |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
rui8_t |
actType, |
|
|
RKH_ST_T * |
state, |
|
|
void * |
action |
|
) |
| |
Expect for RKH_TE_SM_EXE_ACT trace event.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | actType | action type according to RKH_SUBTE_SM_EXE_ACT enum |
[in] | state | action execution context |
[in] | action | executed action |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to expect.
void unitrazer_sm_dch_expect |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
RKH_SIG_T |
signal, |
|
|
RKH_ST_T * |
state |
|
) |
| |
Expect for RKH_TE_SM_DCH trace event.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | signal | argument of trace event with signal |
[in] | state | action execution context |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to expect.
void unitrazer_ignore |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
rui8_t |
trcEvt |
|
) |
| |
Ignore a specific trace event.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | trcEvt | produced trace event to ignore |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to ignore.
void unitrazer_ignoreArg |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
rui8_t |
trcEvt, |
|
|
rui8_t |
noArg |
|
) |
| |
Adds the ability to specify specifc arguments to ignore for a produced trace event, instead of ignoring all the arguments or the entire generated trace event, as the unitrazer_ignore() function supports.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | trcEvt | produced trace event to expect |
[in] | noArg | number of argument to ignore. See UT_ARGNO_<x> macro. |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event to ignore.
void unitrazer_ignoreGroup |
( |
UNITY_LINE_TYPE |
cmockLine, |
|
|
RKH_TG_T |
group |
|
) |
| |
Force to ignore every produced trace event from a specifc trace group.
- Parameters
-
[in] | cmockLine | line number from which this function is called |
[in] | group | group to ignore |
- Note
- This function is internal to RKH and the user application should not call it. Instead, use the corresponding macro for the trace event group to ignore.