FW Profile - C1 Implementation
|
The Test Suite is a complete application which demonstrates all aspects of the behaviour of the State Machine, Procedure, and RT Container implementations.
The main program is in file FwTestSuite.c
. This program consists of a set of test cases. The test cases are declared in file FwSmTestCases.h
for the state machine part, in file FwPrTestCases.h
for the procedure part, and in file FwRtTestCases.h
for the RT container part. Each test case exercises a specific aspect of the state machine, procedure or RT container behaviour.
The test cases operate on test state machines, test procedures and test RT containers. The test state machines are declared in files FwSmMakeTest.h
. The test procedures are declared in files FwPrMakeTest.h
. The test RT containers are declared in files FwRtMakeTest.h
.
The test suite offers 100% code, branch, and condition coverage of the state machine modules with the exception of the error branches in the creation and configuration operations which are entered when the application runs out of memory (i.e. when malloc
fails) or when a POSIX system call fails.