Does Stateflow Coder always generate code that has complete code coverage?
Afficher commentaires plus anciens
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".
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Collect Coverage for Models dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!