Condition and MCDC Coverage Analysis - what do #1 and #2 mean?

조회 수: 2 (최근 30일)
Sandra
Sandra 2013년 11월 14일
답변: Arunkumar M 2018년 11월 11일
I have executed Condition and MCDC Coverage for my Stateflow chart that has a transition that requires two conditions to be true [hcd_enum_stick==enumHcstick.HC_CH_E && hcd_enum_No==enumHcL.HC_L3_E]
The output is attached,I am having problems deciphering what the columns #1 and #2 refer to. I could understand if only one column. I managed to improved the coverage by adding more combinations, but this only improved #1.
The documentation does not give any examples like this, so any advice appreciated.
  댓글 수: 1
Sandra
Sandra 2013년 11월 15일
Actually I think I have worked it out. The coverage is cumulative, so the #1 is the current run, #2 is last run then the Tot column is the cumulative or Total.
But is anyone thinks different let me know!

댓글을 달려면 로그인하십시오.

답변 (1개)

Arunkumar M
Arunkumar M 2018년 11월 11일
In condition coverage, it is enough once if the transition condition as a whole once gets TRUE and once gets FALSE.
In Modified Condition Decision Coverage, in addition to the condition coverage criteria, each of the individual conditions need to be once TRUE and once FALSE. Please note that, to execute the second condition in your transition for either TRUE or FALSE, the first condition must be TRUE.

카테고리

Help CenterFile Exchange에서 Verification, Validation, and Test에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by