Skip to content

Commit d683ba5

Browse files
committed
Move lambda tests to utbot-framework-test module and turn off coverage calculation for them
1 parent 44ca378 commit d683ba5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

utbot-framework/src/test/kotlin/org/utbot/examples/lambda/CustomPredicateExampleTest.kt renamed to utbot-framework-test/src/test/kotlin/org/utbot/examples/lambda/CustomPredicateExampleTest.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package org.utbot.examples.lambda
22

33
import org.junit.jupiter.api.Test
4-
import org.utbot.examples.UtValueTestCaseChecker
5-
import org.utbot.examples.eq
4+
import org.utbot.testcheckers.eq
5+
import org.utbot.tests.infrastructure.DoNotCalculate
6+
import org.utbot.tests.infrastructure.UtValueTestCaseChecker
67

78
class CustomPredicateExampleTest : UtValueTestCaseChecker(testClass = CustomPredicateExample::class) {
89
@Test
@@ -12,6 +13,7 @@ class CustomPredicateExampleTest : UtValueTestCaseChecker(testClass = CustomPred
1213
eq(2),
1314
{ predicate, x, r -> !predicate.test(x) && !r!! },
1415
{ predicate, x, r -> predicate.test(x) && r!! },
16+
coverage = DoNotCalculate
1517
)
1618
}
1719

@@ -22,6 +24,7 @@ class CustomPredicateExampleTest : UtValueTestCaseChecker(testClass = CustomPred
2224
eq(2),
2325
{ predicate, x, r -> !predicate.test(x) && !r!! },
2426
{ predicate, x, r -> predicate.test(x) && r!! },
27+
coverage = DoNotCalculate
2528
)
2629
}
2730

@@ -32,6 +35,7 @@ class CustomPredicateExampleTest : UtValueTestCaseChecker(testClass = CustomPred
3235
eq(2),
3336
{ predicate, x, r -> !predicate.test(x) && !r!! },
3437
{ predicate, x, r -> predicate.test(x) && r!! },
38+
coverage = DoNotCalculate
3539
)
3640
}
3741

@@ -42,6 +46,7 @@ class CustomPredicateExampleTest : UtValueTestCaseChecker(testClass = CustomPred
4246
eq(2),
4347
{ predicate, x, r -> !predicate.test(x) && !r!! },
4448
{ predicate, x, r -> predicate.test(x) && r!! },
49+
coverage = DoNotCalculate
4550
)
4651
}
4752

@@ -52,6 +57,7 @@ class CustomPredicateExampleTest : UtValueTestCaseChecker(testClass = CustomPred
5257
eq(2),
5358
{ predicate, x, r -> !predicate.test(x) && !r!! },
5459
{ predicate, x, r -> predicate.test(x) && r!! },
60+
coverage = DoNotCalculate
5561
)
5662
}
5763
}

0 commit comments

Comments
 (0)