??в???????????
???????????? ???????[ 2010/10/27 17:22:57 ] ????????
??????в???????????д????鷨????????????????????????????????????????????·???????????????????????Z·??????????????
??????в????????????????????????????????·???????
?????????????????????????????????????????????????????????в?????????????????????串????ж????????????????ж?????????????????????·???????????????????????????????????????仯??
public class Coverage
{
public void Main()
{
1 System.out.println("start main function:path a...");
2 int A??B??X;
3 if(A>1 and B==0){
4 X=X/A;
5 System.out.println("path c");
5 } else {
6 System.out.println("path b");
7 }
8 if(A==2 or X>1){
9 X=X+1;
10 System.out.println("path e");
11 } else {
12 System.out.println("path d");
13 }
14 System.out.println("end main function.");
}
}
??????串?????????????????????????б????????????????????????????Ρ?????????????????ζ????ò????????????á?
????????????Coverage???????path a??path c???path e??·???????п???е????·???????????path ace·??????????????????????п???????
??????串????????????????????????
?????ж????????????????????????????????????????б?????????????ж????????????????????????Ρ?
????????????Coverage?????path ace??path abd??path abe??path acd ????·??????????ж?????????·????
?????ж?????????ж????????????????з????????????????????????????????????ж?????????????????????????????Coverage???????8?С?if(A==2 or X>1)????
??????A==2????X>1???????е?9?д????ж????????????????(A==2 or X>1)????????????????п???????????????????????y?A==2??X>1??????????????
????????????????????????????????????ж?????????????????????????????????Ρ?
????????????Coverage??????ж??????????????????3?к??8?д??????????????????壬????????(A>1 and B==0)?????(A==2 or X>1)???????????е????????
?????????????????????????ж?????е????????????п??????????????????????漰??????????????????????????ж??????
?????ж???????????????????????????????ж??е?????????????п??????/????????????Σ?????????ж???????ж??????????????Ρ?
????????????Coverage??????????????path ace??path abd??path abe??path acd ???????·?????ж?????????????????(A>1 and B==0)?????(A==2 or X>1)???????????е?????????????????????????
?????ж???????????????п???????ж????????????????????????????
????????????????????????????????????????????????????ж????????????????????????????Σ?????????????????????????????????????????????
????????????Coverage???е?8?С?if(A==2 or X>1)?????????п??????????????
??????A==2??X>1??????A==2??X<=1?????A!=2??X>1??????????????????н??迼?????????????????????????????????????????????
???????????????????ж?????????????????????
????·???????·????????????????????????????????????п????·????·??????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11