??????в???????????д????鷨????????????????????????????????????????????·???????????????????????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??????????????????н??迼?????????????????????????????????????????????

???????????????????ж?????????????????????

????·???????·????????????????????????????????????п????·????·??????????????????????????