You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.jacoco
8000
.core.test.validation.java5/src/org/jacoco/core/test/validation/java5/targets/BooleanExpressionsTarget.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ public static void main(String[] args) {
46
46
if (t() & t()) { // assertFullyCovered(1, 1)
47
47
nop();
48
48
}
49
+
nop(f() & f()); // assertFullyCovered()
49
50
50
51
/* 4. Conditional And */
51
52
if (f() && f()) { // assertPartlyCovered(3, 1)
@@ -60,6 +61,8 @@ public static void main(String[] args) {
60
61
if (t() && t()) { // assertFullyCovered(2, 2)
61
62
nop();
62
63
}
64
+
nop(f() && f()); // assertPartlyCovered(3, 1)
65
+
nop(t() && f()); // assertPartlyCovered(2, 2)
63
66
64
67
/* 5. Or */
65
68
if (f() | f()) { // assertFullyCovered(1, 1)
@@ -74,6 +77,7 @@ public static void main(String[] args) {
74
77
if (t() | t()) { // assertFullyCovered(1, 1)
75
78
nop();
76
79
}
80
+
nop(f() | f()); // assertFullyCovered()
77
81
78
82
/* 6. Conditional Or */
79
83
if (f() || f()) { // assertFullyCovered(2, 2)
@@ -88,6 +92,8 @@ public static void main(String[] args) {
88
92
if (t() || t()) { // assertPartlyCovered(3, 1)
89
93
nop();
90
94
}
95
+
nop(t() || f()); // assertPartlyCovered(3, 1)
96
+
nop(f() || f()); // assertPartlyCovered(2, 2)
91
97
92
98
/* 7. Exclusive Or */
93
99
if (f() ^ f()) { // assertFullyCovered(1, 1)
@@ -102,6 +108,7 @@ public static void main(String[] args) {
0 commit comments