Does Stateflow Coder always generate code that has complete code coverage?
Mostrar comentarios más antiguos
Under certain scenarios a model containing Stateflow charts generates dead code that cannot be tested. DO-178B coding standards require that generated code achieve 100% code coverage during execution and testing. Hence if there is any generated code that cannot be executed and tested, it poses a problem.
For example, Stateflow Coder may generate code such as the following:
a = TRUE;
if(a==TRUE)
{
// some code here
}
The above code snippet cannot be tested for the condition "a = FALSE".
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Collect Coverage for Models en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!