foxBMS - Unit Tests
1.2.1
The foxBMS Unit Tests API Documentation
|
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) |
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.
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.
void testStateRequestConsistentInput | ( | void | ) |
void testStateRequestInconsistentInputPayload | ( | void | ) |
void testStateRequestInconsistentInputProcessed | ( | void | ) |
void testStateRequestInconsistentInputRXBuffer | ( | void | ) |
void testTransitionsOnlyAllowedInIdleAfterInit | ( | void | ) |