How to measure Function-Call Coverage and Function Coverage of S-Functions

I would like to measure Function-Call Coverage and Function Coverage for the S-Function block. 
I checked the types of code coverage including Function-Call Coverage and Function Coverage at the following URL.
https://kr.mathworks.com/help/slcoverage/ug/types-of-code-coverage.html#mw_92758929-01bc-4c2a-a486-97afee4acd18
But I could not find information about Function-Call Coverage and Function Coverage at the following documentation <Coverage for S-Functions>
According to this above site, The S-Function has constructs that receive decision, condition, and MCDC coverage. 

 Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 31 Déc 2021
Modifié(e) : MathWorks Support Team le 4 Oct 2021
To see Function-Call Coverage and Function Coverage, you need to use SIL or PIL mode as shown in the Release Note below.
-----------------------------------------------------
R2017b
New Features, Compatibility Considerations
Function and Function Call Coverage: Collect SIL & PIL coverage as required by ISO 26262
Simulink Coverage introduces two new metrics for measuring Statement coverage for code.
• Function Coverage: Function coverage determines whether all the functions of your code have been called during simulation.
• Function Call Coverage: Function call coverage determines whether all function calls in your code have been executed.
The new metrics are reported in the top-level Summary and in the Details section of the HTML Coverage Report when you record code coverage.
-----------------------------------------------------
If you use SIL or PIL mode, you can check it in the summary at the top of the HTML Coverage Report.

Plus de réponses (0)

Catégories

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by