Does Stateflow Coder always generate code that has complete code coverage?
Mostra commenti meno recenti
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".
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Collect Coverage for Models in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!