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. 

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 12월 31일
편집: MathWorks Support Team 2021년 10월 4일
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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Collect Coverage for Code에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by