|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
56 #include "Mockdatabase.h"
118 OS_EnterTaskCritical_Expect();
119 OS_ExitTaskCritical_Expect();
120 uint8_t returnValue = 0;
122 TEST_ASSERT_EQUAL(returnValue, 0);
123 OS_EnterTaskCritical_Expect();
124 OS_ExitTaskCritical_Expect();
126 TEST_ASSERT_EQUAL(returnValue, 0xFF);
130 OS_EnterTaskCritical_Expect();
131 OS_ExitTaskCritical_Expect();
143 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
150 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
157 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
162 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
167 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
173 TEST_ASSERT_EQUAL(returnValue,
BAL_OK);
void testStateChanged(void)
void testFiniteStateMachineCheckStateRequestFunction0(void)
int32_t balancingThreshold
bool balancingGlobalAllowed
BAL_STATE_REQUEST_e BAL_TransferStateRequest(BAL_STATE_s *currentState)
transfers the current state request to the state machine.
void testSubstateChanged(void)
void testProcessStateUninitalized2(void)
void testFiniteStateMachineCheckStateRequestFunction4(void)
void testFiniteStateMachineCheckStateRequestFunction2(void)
@ BAL_STATEMACH_CHECK_BALANCING
Header for the driver for balancing.
void testProcessStateInitialized(void)
uint8_t BAL_CheckReEntrance(BAL_STATE_s *currentState)
re-entrance check of BAL state machine trigger function
@ BAL_STATEMACH_INITIALIZATION
@ BAL_STATE_NO_BALANCING_REQUEST
void BAL_ProcessStateInitialization(BAL_STATE_s *currentState)
State machine subfunction to initialize the balancing state machine.
void testFiniteStateMachineCheckStateRequestFunction5(void)
void BAL_ProcessStateInitialized(BAL_STATE_s *currentState)
State machine subfunction to transfer from an initalized state to "running" states of th state machin...
void testNoStateChanged(void)
@ BAL_ALREADY_INITIALIZED
STD_RETURN_TYPE_e initializationFinished
@ BAL_STATEMACH_UNINITIALIZED
void testProcessStateUninitalized1(void)
void testFiniteStateMachineCheckStateRequestFunction1(void)
@ BAL_STATE_GLOBAL_ENABLE_REQUEST
@ BAL_STATE_GLOBAL_DISABLE_REQUEST
BAL_STATEMACH_e lastState
void testFiniteStateMachineCheckStateRequestFunction3(void)
void testFiniteStateMachineCheckStateRequestFunction6(void)
enum BAL_RETURN_TYPE BAL_RETURN_TYPE_e
void BAL_SaveLastStates(BAL_STATE_s *pBalancingState)
Saves the last state and the last substate.
#define BAL_STATEMACH_SHORTTIME_100ms
void testFiniteStateMachineTransferStateRequestFunction(void)
@ BAL_STATEMACH_INITIALIZED
void testFiniteStateMachineCheckStateRequestFunction7(void)
BAL_STATEMACH_SUB_e substate
BAL_RETURN_TYPE_e BAL_CheckStateRequest(BAL_STATE_s *pCurrentState, BAL_STATE_REQUEST_e stateRequest)
checks the state requests that are made.
BAL_STATE_REQUEST_e stateRequest
void testFiniteStateMachineCheckReEntranceFunction(void)
enum BAL_STATE_REQUEST BAL_STATE_REQUEST_e
uint32_t errorRequestCounter
@ BAL_STATE_ERROR_REQUEST
void testProcessStateInitialization(void)
void BAL_ProcessStateUninitalized(BAL_STATE_s *pCurrentState, BAL_STATE_REQUEST_e stateRequest)
Substate handling function for BAL_Trigger()
Database configuration header.
@ BAL_STATE_ALLOWBALANCING_REQUEST
void testProcessStateUninitalized0(void)