Skip to content

Commit 994a745

Browse files
committed
Wrap long lines
1 parent 4395c14 commit 994a745

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

usvm-ts/src/test/kotlin/org/usvm/reachability/BasicConditionsReachabilityTest.kt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class BasicConditionsReachabilityTest {
4747

4848
@Test
4949
fun testSimpleReachablePath() {
50-
// Test reachability of path: if (x > 10) -> if (x < 20) -> return 1
50+
// Test reachability of path:
51+
// if (x > 10) -> if (x < 20) -> return 1
5152
val machine = TsMachine(scene, options, tsOptions, machineObserver = ReachabilityObserver())
5253
val method = scene.projectClasses
5354
.flatMap { it.methods }
@@ -84,7 +85,8 @@ class BasicConditionsReachabilityTest {
8485

8586
@Test
8687
fun testSimpleUnreachablePath() {
87-
// Test unreachability of contradicting conditions: if (x > 15) -> if (x < 10) -> return -1
88+
// Test unreachability of contradicting conditions:
89+
// if (x > 15) -> if (x < 10) -> return -1
8890
val machine = TsMachine(scene, options, tsOptions, machineObserver = ReachabilityObserver())
8991
val method = scene.projectClasses
9092
.flatMap { it.methods }
@@ -116,7 +118,8 @@ class BasicConditionsReachabilityTest {
116118

117119
@Test
118120
fun testMultiVariableReachable() {
119-
// Test reachability with multiple variables: if (x > 0) -> if (y > 5) -> if (x + y > 10) -> return 1
121+
// Test reachability with multiple variables:
122+
// if (x > 0) -> if (y > 5) -> if (x + y > 10) -> return 1
120123
val machine = TsMachine(scene, options, tsOptions, machineObserver = ReachabilityObserver())
121124
val method = scene.projectClasses
122125
.flatMap { it.methods }
@@ -157,7 +160,8 @@ class BasicConditionsReachabilityTest {
157160

158161
@Test
159162
fun testEqualityBasedReachability() {
160-
// Test reachability with equality: if (value === 42) -> if (value > 40) -> if (value < 50) -> return 1
163+
// Test reachability with equality:
164+
// if (value === 42) -> if (value > 40) -> if (value < 50) -> return 1
161165
val machine = TsMachine(scene, options, tsOptions, machineObserver = ReachabilityObserver())
162166
val method = scene.projectClasses
163167
.flatMap { it.methods }
@@ -192,7 +196,8 @@ class BasicConditionsReachabilityTest {
192196

193197
@Test
194198
fun testBooleanUnreachable() {
195-
// Test unreachability with contradicting boolean conditions: if (flag) -> if (!flag) -> return -1
199+
// Test unreachability with contradicting boolean conditions:
200+
// if (flag) -> if (!flag) -> return -1
196201
val machine = TsMachine(scene, options, tsOptions, machineObserver = ReachabilityObserver())
197202
val method = scene.projectClasses
198203
.flatMap { it.methods }

usvm-ts/src/test/kotlin/org/usvm/reachability/FieldAccessReachabilityTest.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class FieldAccessReachabilityTest {
4747

4848
@Test
4949
fun testSimpleFieldReachable() {
50-
// Test reachability through field access: if (this.x > 0) -> if (this.y < 10) -> return 1
50+
// Test reachability through field access:
51+
// if (this.x > 0) -> if (this.y < 10) -> return 1
5152
val machine = TsMachine(scene, options, tsOptions, machineObserver = ReachabilityObserver())
5253
val method = scene.projectClasses
5354
.flatMap { it.methods }
@@ -84,7 +85,8 @@ class FieldAccessReachabilityTest {
8485

8586
@Test
8687
fun testFieldModificationReachable() {
87-
// Test reachability after field modification: this.x = value -> if (this.x > 15) -> if (this.x < 25) -> return 1
88+
// Test reachability after field modification:
89+
// this.x = value -> if (this.x > 15) -> if (this.x < 25) -> return 1
8890
val machine = TsMachine(scene, options, tsOptions, machineObserver = ReachabilityObserver())
8991
val method = scene.projectClasses
9092
.flatMap { it.methods }
@@ -121,7 +123,8 @@ class FieldAccessReachabilityTest {
121123

122124
@Test
123125
fun testFieldConstraintUnreachable() {
124-
// Test unreachability due to field constraints: this.x = 10 -> if (this.x > 20) -> return -1
126+
// Test unreachability due to field constraints:
127+
// this.x = 10 -> if (this.x > 20) -> return -1
125128
val machine = TsMachine(scene, options, tsOptions, machineObserver = ReachabilityObserver())
126129
val method = scene.projectClasses
127130
.flatMap { it.methods }

0 commit comments

Comments
 (0)