foxBMS - Unit Tests  1.5.0
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 145 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 132 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testStateRequestConsistentInput()

void testStateRequestConsistentInput ( void  )

Definition at line 179 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testStateRequestInconsistentInputPayload()

void testStateRequestInconsistentInputPayload ( void  )

Definition at line 185 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testStateRequestInconsistentInputProcessed()

void testStateRequestInconsistentInputProcessed ( void  )

Definition at line 213 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testStateRequestInconsistentInputRXBuffer()

void testStateRequestInconsistentInputRXBuffer ( void  )

Definition at line 199 of file test_mxm_17841b.c.

Here is the call graph for this function:

◆ testTransitionsOnlyAllowedInIdleAfterInit()

void testTransitionsOnlyAllowedInIdleAfterInit ( void  )

Definition at line 163 of file test_mxm_17841b.c.

Here is the call graph for this function: