下面代码如果用基本路径法测试的话,覆盖几条路径?
发布于 2022-03-03 11:52:25
下面代码如果用基本路径法测试的话,覆盖几条路径?
void sort(int num, int type){ int a = 0 int b = 0 while(num-- > 0){ if(3==type){ a=b+1 break } else if(4==type){ x=y+10 } else if(5==type){ x=y+20 } else { x=y+30 } } }
登录后免费查看答案
关注者
0
被浏览
18