Skip to content

Commit e7061a0

Browse files
consolidate integration with cover
2 parents f131a83 + 4998f05 commit e7061a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1077
-58
lines changed
725 Bytes
Binary file not shown.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class if_icmp1
2+
{
3+
private static void f() {
4+
int i = 10;
5+
int j = 11;
6+
if (i == j) {
7+
assert false;
8+
}
9+
if (i >= j) {
10+
assert false;
11+
}
12+
if (j > i) {
13+
assert true;
14+
} else {
15+
assert false;
16+
}
17+
if (j <= i) {
18+
assert false;
19+
}
20+
if (j < i) {
21+
assert false;
22+
} else {
23+
assert true;
24+
}
25+
}
26+
27+
public static void main(String[] args)
28+
{
29+
f();
30+
}
31+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
if_icmp1.class
3+
--cover location --no-trivial-tests
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\*\* 12 of 27 covered (44.4%)
7+
--
8+
^warning: ignoring
463 Bytes
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
public class Person {
2+
3+
private int age;
4+
5+
//public method to get the age variable
6+
public int getAge(){
7+
return this.age;
8+
}
9+
10+
//public method to set the age variable
11+
public void setAge(int age){
12+
this.age = age;
13+
}
14+
15+
public static void main(String[] args) {
16+
Person p = new Person();
17+
p.setAge(10);
18+
int x = p.getAge();
19+
}
20+
}
21+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Person.class
3+
--cover location --no-trivial-tests
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\*\* 4 of 4 covered (100.0%)
7+
--
8+
^warning: ignoring
767 Bytes
Binary file not shown.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
public class Person {
2+
3+
private int age;
4+
5+
//public method to get the age variable
6+
public int getAge(){
7+
return this.age;
8+
}
9+
10+
//public method to set the age variable
11+
public void setAge(int age){
12+
int smokedCigarettes = 3;
13+
this.age = age;
14+
15+
double averageCigarettesPerYear = smokedCigarettes * 1.0 / age;
16+
17+
if(averageCigarettesPerYear >= 7300.0) {
18+
assert false;
19+
}
20+
}
21+
22+
public static void main(String[] args) {
23+
Person p = new Person();
24+
p.setAge(10);
25+
int x = p.getAge();
26+
}
27+
}
28+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Person.class
3+
--cover location --no-trivial-tests
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\*\* 11 of 14 covered (78.6%)
7+
--
8+
^warning: ignoring
1.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)