File tree Expand file tree Collapse file tree 6 files changed +61
-28
lines changed
main/java/cn/swust/software/whitebox
java/cn/swust/software/whitebox Expand file tree Collapse file tree 6 files changed +61
-28
lines changed Original file line number Diff line number Diff line change 66 <attribute name =" maven.pomderived" value =" true" />
77 </attributes >
88 </classpathentry >
9+ <classpathentry excluding =" java/|resources/" kind =" src" path =" src/test" />
910 <classpathentry kind =" src" output =" target/test-classes" path =" src/test/java" >
1011 <attributes >
12+ <attribute name =" test" value =" true" />
1113 <attribute name =" optional" value =" true" />
1214 <attribute name =" maven.pomderived" value =" true" />
13- <attribute name =" test" value =" true" />
1415 </attributes >
1516 </classpathentry >
16- <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8 " >
17+ <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER" >
1718 <attributes >
1819 <attribute name =" maven.pomderived" value =" true" />
1920 </attributes >
2627 <classpathentry kind =" con" path =" org.eclipse.jdt.junit.JUNIT_CONTAINER/5" />
2728 <classpathentry excluding =" **" kind =" src" output =" target/test-classes" path =" src/test/resources" >
2829 <attributes >
29- <attribute name =" maven.pomderived" value =" true" />
3030 <attribute name =" test" value =" true" />
31+ <attribute name =" maven.pomderived" value =" true" />
3132 </attributes >
3233 </classpathentry >
3334 <classpathentry kind =" output" path =" target/classes" />
Original file line number Diff line number Diff line change 9393 <enabled >true</enabled >
9494 </releases >
9595 </repository >
96- <repository >
97- <id >nexus-163</id >
98- <name >Nexus 163</name >
99- <url >http://mirrors.163.com/maven/repository/maven-public/</url >
100-
101- <snapshots >
102- <enabled >false</enabled >
103- </snapshots >
104- <releases >
105- <enabled >true</enabled >
106- </releases >
107- </repository >
10896 </repositories >
10997 <pluginRepositories >
11098 <pluginRepository >
117105 <enabled >true</enabled >
118106 </releases >
119107 </pluginRepository >
120-
121- <pluginRepository >
122- <id >nexus-163</id >
123- <name >Nexus 163</name >
124- <url >http://mirrors.163.com/maven/repository/maven-public/</url >
125- <snapshots >
126- <enabled >false</enabled >
127- </snapshots >
128- <releases >
129- <enabled >true</enabled >
130- </releases >
131- </pluginRepository >
132108 </pluginRepositories >
133109 <build >
134110 <plugins >
199175 <artifactId >maven-checkstyle-plugin</artifactId >
200176 <version >${maven.checkstyle.version} </version >
201177 <configuration >
202- <configLocation >checkstyle .xml</configLocation >
178+ <configLocation >maven_checks .xml</configLocation >
203179 <sourceDirectories ></sourceDirectories >
204180 <testSourceDirectories >${project.build.testSourceDirectory} </testSourceDirectories >
205181 <includeTestSourceDirectory >true</includeTestSourceDirectory >
Original file line number Diff line number Diff line change 1+ package cn .swust .software .whitebox ;
2+
3+ public class Exam1 {
4+ public int fun1 (int a , int b , int x ) {
5+ if ((a > 1 ) && (b == 0 ))
6+ x = x / a ;
7+
8+ if ((a == 2 ) || (x > 1 ))
9+ x = x + 1 ;
10+ return x ;
11+ }
12+
13+ double DoWork (int x , int y , int z ) {
14+ double k = 0 , j = 0 ;
15+ if ((x > 3 ) && (z < 10 )) {
16+ k = x * y - 1 ;
17+ j = Math .sqrt (k );
18+ }
19+ if ((x == 4 ) || (y > 5 ))
20+ j = x * y + 10 ;
21+ j = j % 3 ;
22+ return j ;
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ package cn .swust .software .whitebox ;
2+
3+ import static org .junit .jupiter .api .Assertions .*;
4+
5+ import org .junit .jupiter .api .AfterEach ;
6+ import org .junit .jupiter .api .BeforeEach ;
7+ import org .junit .jupiter .api .Test ;
8+
9+ class GetWeekTest {
10+
11+ @ BeforeEach
12+ void setUp () throws Exception {
13+ }
14+
15+ @ AfterEach
16+ void tearDown () throws Exception {
17+ }
18+
19+ @ Test
20+ void testGetWeek () {
21+ fail ("Not yet implemented" );
22+ }
23+
24+ }
Original file line number Diff line number Diff line change 1+ id,a,b,c,exp,msg
2+ 1,2,0,3,2, 语句覆盖
3+ 2,2,0,3,3, 分支覆盖
4+ 3,2,0,3,4, 条件覆盖
Original file line number Diff line number Diff line change 1+ id,a,b,c,exp,msg
2+ 1,2,0,3,2, 语句覆盖
3+ 2,2,0,3,3, 分支覆盖
4+ 3,2,0,3,4, 条件覆盖
You can’t perform that action at this time.
0 commit comments