58 #include "MockHL_het.h"
59 #include "Mockdatabase.h"
61 #include "Mockfassert.h"
82 .ErrRequestCounter = 0,
100 OS_EnterTaskCritical_Expect();
101 OS_ExitTaskCritical_Expect();
107 OS_EnterTaskCritical_Expect();
108 OS_ExitTaskCritical_Expect();
115 OS_EnterTaskCritical_Expect();
116 OS_ExitTaskCritical_Expect();
122 IO_SetPinDirectionToOutput_Ignore();
123 IO_SetPinDirectionToInput_Ignore();
124 IO_PinReset_Ignore();
125 OS_EnterTaskCritical_Expect();
126 OS_ExitTaskCritical_Expect();
128 OS_EnterTaskCritical_Expect();
129 OS_ExitTaskCritical_Expect();
135 OS_EnterTaskCritical_Expect();
136 OS_ExitTaskCritical_Expect();
141 OS_EnterTaskCritical_Expect();
142 OS_ExitTaskCritical_Expect();
145 OS_EnterTaskCritical_Expect();
146 OS_ExitTaskCritical_Expect();
149 IO_SetPinDirectionToOutput_Ignore();
150 IO_SetPinDirectionToInput_Ignore();
151 IO_PinReset_Ignore();
157 OS_EnterTaskCritical_Expect();
158 OS_ExitTaskCritical_Expect();
164 OS_EnterTaskCritical_Expect();
165 OS_ExitTaskCritical_Expect();
168 OS_EnterTaskCritical_Expect();
169 OS_ExitTaskCritical_Expect();
181 OS_EnterTaskCritical_Ignore();
182 OS_ExitTaskCritical_Ignore();
183 IO_SetPinDirectionToOutput_Ignore();
184 IO_SetPinDirectionToInput_Ignore();
185 IO_PinReset_Ignore();
187 DATA_Read1DataBlock_IgnoreAndReturn(
STD_OK);
188 DATA_Write1DataBlock_IgnoreAndReturn(
STD_OK);
189 DIAG_CheckEvent_IgnoreAndReturn(
STD_OK);
196 for (uint8_t i = 0u; i < 10; i++) {
206 OS_EnterTaskCritical_Expect();
207 OS_ExitTaskCritical_Expect();
211 OS_EnterTaskCritical_Expect();
212 OS_ExitTaskCritical_Expect();
215 OS_EnterTaskCritical_Expect();
216 OS_ExitTaskCritical_Expect();
227 OS_EnterTaskCritical_Ignore();
228 OS_ExitTaskCritical_Ignore();
232 IO_PinReset_Ignore();
235 DATA_Read1DataBlock_IgnoreAndReturn(
STD_OK);
236 DATA_Write1DataBlock_IgnoreAndReturn(
STD_OK);
244 OS_EnterTaskCritical_Ignore();
245 OS_ExitTaskCritical_Ignore();
248 IO_PinReset_Ignore();
252 DATA_Read1DataBlock_IgnoreAndReturn(
STD_OK);
253 DATA_Write1DataBlock_IgnoreAndReturn(
STD_OK);
void TEST_ILCK_SetStateStruct(ILCK_STATE_s state)
static ILCK_STATE_s ilck_state
ILCK_RETURN_TYPE_e ILCK_SetStateRequest(ILCK_STATE_REQUEST_e statereq)
sets the current state request of the state variable ilck_state.
void ILCK_Trigger(void)
trigger function for the ILCK driver state machine.
ILCK_ELECTRICAL_STATE_TYPE_e TEST_ILCK_GetInterlockFeedback(void)
ILCK_STATEMACH_e ILCK_GetState(void)
gets the current state.
Headers for the driver for the interlock.
@ ILCK_STATEMACHINE_UNINITIALIZED
@ ILCK_STATEMACHINE_INITIALIZED
@ ILCK_ALREADY_INITIALIZED
@ ILCK_STATE_INITIALIZATION_REQUEST
Header for the configuration for the driver for the interlock.
#define ILCK_INTERLOCK_FEEDBACK_PIN_IL_STATE
void testInitializeStatemachine(void)
void testILCK_GetState(void)
void testILCK_GetInterlockFeedbackFeedbackOff(void)
void testILCK_SetStateRequestLegalValuesILCK_STATE_INIT_REQUEST(void)
void testILCK_SetStateRequestLegalValuesILCK_STATE_NO_REQUEST(void)
void testILCK_SetStateRequestIllegalValue(void)
void testILCK_SetStateRequestIllegalValueAndThenRunStatemachine(void)
void testILCK_SetStateRequestDoubleInitialization(void)
void testRunStatemachineWithoutRequest(void)
void testILCK_SetStateRequestDoubleInitializationWithoutStatemachine(void)
void testILCK_GetInterlockFeedbackFeedbackOn(void)