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. 

 Accepted Answer

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.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!