foxBMS - Unit Tests  1.2.1
The foxBMS Unit Tests API Documentation
tests for function MXM_41BSetStateRequest

Functions

void testSetStateRequestInvalidInstancePointer (void)
 Test with an invalid pointer. More...
 
void testOnlyAllowedTransitionFromUnitializedIsInit (void)
 Test that the only transition from uninitialized is initialization. More...
 
void testTransitionsOnlyAllowedInIdleAfterInit (void)
 
void testStateRequestConsistentInput (void)
 
void testStateRequestInconsistentInputPayload (void)
 
void testStateRequestInconsistentInputRXBuffer (void)
 
void testStateRequestInconsistentInputProcessed (void)
 

Detailed Description

Function Documentation

◆ testOnlyAllowedTransitionFromUnitializedIsInit()

void testOnlyAllowedTransitionFromUnitializedIsInit ( void  )

Test that the only transition from uninitialized is initialization.

This test expects the state machine to be in state MXM_STATEMACH_41B_UNINITIALIZED and various transitions to other states. The only valid transition has to be to MXM_STATEMACH_41B_INIT. This is check by evaluating the return value of MXM_41BSetStateRequest().

Definition at line 139 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testSetStateRequestInvalidInstancePointer()

void testSetStateRequestInvalidInstancePointer ( void  )

Test with an invalid pointer.

This test calls MXM_41BSetStateRequest() with an invalid pointer value and expects an assertion to be triggered.

Definition at line 126 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testStateRequestConsistentInput()

void testStateRequestConsistentInput ( void  )

Definition at line 173 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testStateRequestInconsistentInputPayload()

void testStateRequestInconsistentInputPayload ( void  )

Definition at line 179 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testStateRequestInconsistentInputProcessed()

void testStateRequestInconsistentInputProcessed ( void  )

Definition at line 207 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testStateRequestInconsistentInputRXBuffer()

void testStateRequestInconsistentInputRXBuffer ( void  )

Definition at line 193 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testTransitionsOnlyAllowedInIdleAfterInit()

void testTransitionsOnlyAllowedInIdleAfterInit ( void  )

Definition at line 157 of file test_mxm_17841b.c.

Here is the call graph for this function: