File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
main/org/jetbrains/kotlinx/lincheck
test/org/jetbrains/kotlinx/lincheck_test/gpmc Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 8
8
* with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
9
*/
10
10
11
+ @file:JvmName(" Lincheck" )
12
+
11
13
package org.jetbrains.kotlinx.lincheck
12
14
13
15
import org.jetbrains.kotlinx.lincheck.execution.*
@@ -31,19 +33,9 @@ annotation class ExperimentalModelCheckingAPI
31
33
* @param block lambda which body will be a target for the interleavings exploration.
32
34
*/
33
35
@ExperimentalModelCheckingAPI
36
+ @JvmOverloads
34
37
fun runConcurrentTest (
35
38
invocations : Int = DEFAULT_INVOCATIONS_COUNT ,
36
- block : () -> Unit // TODO: should we keep only the `Runnable` options?
37
- ) = runConcurrentTestImpl(invocations, block)
38
-
39
- @ExperimentalModelCheckingAPI
40
- fun runConcurrentTest (
41
- block : Runnable
42
- ) = runConcurrentTestImpl(DEFAULT_INVOCATIONS_COUNT , block)
43
-
44
- @ExperimentalModelCheckingAPI
45
- fun runConcurrentTest (
46
- invocations : Int ,
47
39
block : Runnable
48
40
) = runConcurrentTestImpl(invocations, block)
49
41
Original file line number Diff line number Diff line change 15
15
import java .util .concurrent .ConcurrentLinkedDeque ;
16
16
import java .util .concurrent .atomic .AtomicInteger ;
17
17
18
- import static org .jetbrains .kotlinx .lincheck .LincheckKt .runConcurrentTest ;
18
+ import static org .jetbrains .kotlinx .lincheck .Lincheck .runConcurrentTest ;
19
19
import static org .junit .Assert .assertFalse ;
20
20
21
21
public class JavaAPITest {
You can’t perform that action at this time.
0 commit comments