|
RKH
|
Interface of unit test with Trazer application. More...

Go to the source code of this file.
Macros | |
| #define | sm_init() unitrazer_start() |
| Establish the preconditions to the tests. | |
| #define | sm_cleanup() unitrazer_cleanup() |
| Return the system under test to its initial state after the test. | |
| #define | sm_verify() unitrazer_verify() |
| Makes sure there are no unused expectations, if there are, this function causes the test to fail. | |
Functions | |
| 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. | |
| 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. | |
| 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. | |
| void | unitrazer_expect_noArgs (UNITY_LINE_TYPE cmockLine, RKH_TE_ID_T trcEvt) |
| Identifies the trace event to expect without arguments. | |
| void | unitrazer_expectAnyArgs (UNITY_LINE_TYPE cmockLine, rui8_t trcEvt) |
| Expect a specific trace event regardless its arguments. | |
| 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. | |
| 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. | |
| void | unitrazer_ignore (UNITY_LINE_TYPE cmockLine, rui8_t trcEvt) |
| Ignore a specific trace event. | |
| 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. | |
| void | unitrazer_ignoreGroup (UNITY_LINE_TYPE cmockLine, RKH_TG_T group) |
| Force to ignore every produced trace event from a specifc trace group. | |
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.
| [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 |
| 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.
| [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 |
| 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.
| [in] | cmockLine | line number from which this function is called |
| [in] | trcEvt | trace event to expect |
| [in] | signal | argument of trace event with signal |
| void unitrazer_expect_noArgs | ( | UNITY_LINE_TYPE | cmockLine, |
| RKH_TE_ID_T | trcEvt | ||
| ) |
Identifies the trace event to expect without arguments.
| [in] | cmockLine | line number from which this function is called |
| [in] | trcEvt | trace event to expect |
| void unitrazer_expectAnyArgs | ( | UNITY_LINE_TYPE | cmockLine, |
| rui8_t | trcEvt | ||
| ) |
Expect a specific trace event regardless its arguments.
| [in] | cmockLine | line number from which this function is called |
| [in] | trcEvt | produced trace event to expect but it ignores its arguments |
| 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.
| [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 |
Expect for RKH_TE_SM_DCH trace event.
| [in] | cmockLine | line number from which this function is called |
| [in] | signal | argument of trace event with signal |
| [in] | state | action execution context |
| void unitrazer_ignore | ( | UNITY_LINE_TYPE | cmockLine, |
| rui8_t | trcEvt | ||
| ) |
Ignore a specific trace event.
| [in] | cmockLine | line number from which this function is called |
| [in] | trcEvt | produced 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.
| [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. |
| void unitrazer_ignoreGroup | ( | UNITY_LINE_TYPE | cmockLine, |
| RKH_TG_T | group | ||
| ) |
Force to ignore every produced trace event from a specifc trace group.
| [in] | cmockLine | line number from which this function is called |
| [in] | group | group to ignore |