26 #include "unity_fixture.h"
30 #include "test_common.h"
33 #define utrzOkCheck() \
36 p = unitrazer_getLastOut(); \
37 TEST_ASSERT_EQUAL(UT_PROC_SUCCESS, p->status); \
40 #define utrzFailCheck() \
43 p = unitrazer_getLastOut(); \
44 TEST_ASSERT_EQUAL(UT_PROC_FAIL, p->status); \
50 TEST_GROUP(utrzIgnore);
57 TEST_SETUP(utrzIgnore)
65 TEST_TEAR_DOWN(utrzIgnore)
80 TEST(utrzIgnore, sm_trn_Ok)
94 TEST(utrzIgnore, sm_trn_OneArg)
96 sm_trn_expect(CST(&s21), CST(&s211));
97 sm_trn_ignoreArg_sourceState();
104 TEST(utrzIgnore, sm_trn_OneArgBeforeExpect)
108 sm_trn_expect(CST(&s21), CST(&s211));
110 sm_trn_ignoreArg_sourceState();
112 p = unitrazer_getLastOut();
113 TEST_ASSERT_EQUAL(UT_PROC_FAIL, p->status);
114 TEST_ASSERT_EQUAL_STRING(
"IgnoreArg called before Expect on event 'TRN'."
120 TEST(utrzIgnore, sm_exeAct_Ok)
134 TEST(utrzIgnore, sm_exeAct_OneArg)
136 sm_trn_expect(CST(&s21), CST(&s211));
137 sm_trn_ignoreArg_sourceState();
144 TEST(utrzIgnore, sm_exeAct_OneArgBeforeExpect)
148 sm_trn_expect(CST(&s21), CST(&s211));
150 sm_trn_ignoreArg_sourceState();
152 p = unitrazer_getLastOut();
153 TEST_ASSERT_EQUAL(UT_PROC_FAIL, p->status);
154 TEST_ASSERT_EQUAL_STRING(
"IgnoreArg called before Expect on event 'TRN'."
161 TEST(utrzIgnore, ignoreAnEventOfIgnoredGroup)
173 TEST(utrzIgnore, ignoreAnOutOfRangeGroup)
180 TEST(utrzIgnore, ignoreAnOutOfRangeEvent)
187 TEST(utrzIgnore, verifyFail)
189 sm_trn_expect(CST(&s21), CST(&s211));
#define RKH_TR_SM_EVT_PROC(actObj_)
The arrived event was succesfully processed and HSM resides in an allowed state.
void unitrazer_ignoreGroup(UNITY_LINE_TYPE cmockLine, RKH_TG_T group)
Force to ignore every produced trace event from a specifc trace group.
#define RKH_TE_TMR_TOUT
Timer expired.
#define RKH_TR_FWK_AO(actObj_)
Entry symbol table for active object.
Interface of unit test with Trazer application.
void unitrazer_cleanup(void)
Return the system under test to its initial state after the test.
#define RKH_TG_NGROUP
Number of trace groups.
void unitrazer_ignore(UNITY_LINE_TYPE cmockLine, rui8_t trcEvt)
Ignore a specific trace event.
void unitrazer_verify(void)
Makes sure there are no unused expectations, if there are, this function causes the test to fail...
RKH framwwork platform - independent interface.
#define RKH_TR_SM_TRN(actObj_, sourceState_, targetState_)
Source and target state of the transition. The target could be either basic state, composite state or pseudostate.