Skip to content

Commit ec6fc92

Browse files
Update dependency org.junit.jupiter:junit-jupiter to v6 (#194)
* Update dependency org.junit.jupiter:junit-jupiter to v6 * Fix unit tests * Increase maxHeapSize for unit tests --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Oleksii Shtanko <shtankopro@gmail.com>
1 parent e48d10d commit ec6fc92

File tree

1,270 files changed

+2710
-2642
lines changed

Some content is hidden

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

1,270 files changed

+2710
-2642
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a href="https://hitsofcode.com/github/ashtanko/kotlab/view?branch=main"><img alt="Hits-of-Code" src="https://hitsofcode.com/github/ashtanko/kotlab?branch=main"/></a>
1111
<a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fashtanko%2Falgorithms-in-depth?ref=badge_shield&issueType=license"><img alt="FOSSA Status" src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fashtanko%2Falgorithms-in-depth.svg?type=shield&issueType=license"/></a>
1212
<a href="https://ktlint.github.io/"><img alt="CodeStyle" src="https://img.shields.io/badge/code%20style-%E2%9D%A4-FF4081.svg"/></a>
13-
<a href="https://kotlinlang.org/"><img alt="Kotlin Version" src="https://img.shields.io/badge/kotlin-2.2.10-blue.svg"/></a>
13+
<a href="https://kotlinlang.org/"><img alt="Kotlin Version" src="https://img.shields.io/badge/kotlin-2.2.20-blue.svg"/></a>
1414
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Quality Gate Status" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=alert_status"/></a>
1515
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Bugs" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=bugs"/></a>
1616
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Code Smells" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=code_smells"/></a>
@@ -20,23 +20,23 @@
2020

2121
### Metrics
2222
```text
23-
15288 number of properties
24-
10573 number of functions
25-
8954 number of classes
23+
15345 number of properties
24+
10588 number of functions
25+
8955 number of classes
2626
240 number of packages
27-
3543 number of kt files
27+
3545 number of kt files
2828
```
2929

3030

3131
### Complexity Report
3232
```text
33-
267458 lines of code (loc)
34-
166374 source lines of code (sloc)
35-
121548 logical lines of code (lloc)
36-
72562 comment lines of code (cloc)
37-
25100 cyclomatic complexity (mcc)
38-
20431 cognitive complexity
33+
267779 lines of code (loc)
34+
166654 source lines of code (sloc)
35+
121749 logical lines of code (lloc)
36+
72563 comment lines of code (cloc)
37+
25144 cyclomatic complexity (mcc)
38+
20480 cognitive complexity
3939
0 number of total code smells
4040
43 comment source ratio
4141
206 mcc per 1,000 lloc
42-
```
42+
```

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ tasks {
161161
// }
162162

163163
withType<Test> {
164+
maxHeapSize = "4g"
164165
maxParallelForks = 1
165166
jvmArgs(
166167
"--add-opens",
@@ -169,6 +170,8 @@ tasks {
169170
"java.base/jdk.internal.util=ALL-UNNAMED",
170171
"--add-exports",
171172
"java.base/sun.security.action=ALL-UNNAMED",
173+
"-XX:+HeapDumpOnOutOfMemoryError",
174+
"-XX:HeapDumpPath=${project.buildDir}/heapdump.hprof"
172175
)
173176
}
174177

config/main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a href="https://hitsofcode.com/github/ashtanko/kotlab/view?branch=main"><img alt="Hits-of-Code" src="https://hitsofcode.com/github/ashtanko/kotlab?branch=main"/></a>
1111
<a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fashtanko%2Falgorithms-in-depth?ref=badge_shield&issueType=license"><img alt="FOSSA Status" src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fashtanko%2Falgorithms-in-depth.svg?type=shield&issueType=license"/></a>
1212
<a href="https://ktlint.github.io/"><img alt="CodeStyle" src="https://img.shields.io/badge/code%20style-%E2%9D%A4-FF4081.svg"/></a>
13-
<a href="https://kotlinlang.org/"><img alt="Kotlin Version" src="https://img.shields.io/badge/kotlin-2.2.10-blue.svg"/></a>
13+
<a href="https://kotlinlang.org/"><img alt="Kotlin Version" src="https://img.shields.io/badge/kotlin-2.2.20-blue.svg"/></a>
1414
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Quality Gate Status" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=alert_status"/></a>
1515
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Bugs" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=bugs"/></a>
1616
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Code Smells" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=code_smells"/></a>

config/main.md.bak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a href="https://hitsofcode.com/github/ashtanko/kotlab/view?branch=main"><img alt="Hits-of-Code" src="https://hitsofcode.com/github/ashtanko/kotlab?branch=main"/></a>
1111
<a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fashtanko%2Falgorithms-in-depth?ref=badge_shield&issueType=license"><img alt="FOSSA Status" src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fashtanko%2Falgorithms-in-depth.svg?type=shield&issueType=license"/></a>
1212
<a href="https://ktlint.github.io/"><img alt="CodeStyle" src="https://img.shields.io/badge/code%20style-%E2%9D%A4-FF4081.svg"/></a>
13-
<a href="https://kotlinlang.org/"><img alt="Kotlin Version" src="https://img.shields.io/badge/kotlin-2.2.0-blue.svg"/></a>
13+
<a href="https://kotlinlang.org/"><img alt="Kotlin Version" src="https://img.shields.io/badge/kotlin-2.2.20-blue.svg"/></a>
1414
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Quality Gate Status" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=alert_status"/></a>
1515
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Bugs" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=bugs"/></a>
1616
<a href="https://sonarcloud.io/summary/new_code?id=ashtanko_kotlab"><img alt="Code Smells" src="https://sonarcloud.io/api/project_badges/measure?project=ashtanko_kotlab&metric=code_smells"/></a>

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ diktat = "2.0.0" # https://github.com/saveourtool/diktat
1515
binaryCompatibility = "0.18.1"
1616

1717
# --- Testing ---
18-
junit = "5.14.0" # https://junit.org/junit5
18+
junit = "6.0.0" # https://junit.org/junit5
1919
kotest = "5.9.1" # https://kotest.io
2020
kotlintest = "3.4.2" # https://mvnrepository.com/artifact/io.kotlintest/kotlintest-core
2121
assertj = "3.27.6" # https://assertj.github.io/doc

src/test/kotlin/dev/shtanko/algorithms/backtracking/NQueensTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import org.junit.jupiter.params.support.ParameterDeclarations
2828
abstract class NQueensTest<out T : NQueens>(private val strategy: T) {
2929
private class InputArgumentsProvider : ArgumentsProvider {
3030
override fun provideArguments(
31-
parameters: ParameterDeclarations?,
32-
context: ExtensionContext?,
31+
parameters: ParameterDeclarations,
32+
context: ExtensionContext,
3333
): Stream<out Arguments> = Stream.of(
3434
Arguments.of(
3535
0,

src/test/kotlin/dev/shtanko/algorithms/bitwise/BinaryRepresentationTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import org.junit.jupiter.params.support.ParameterDeclarations
2828
class BinaryRepresentationTest {
2929
private class LongArgs : ArgumentsProvider {
3030
override fun provideArguments(
31-
parameters: ParameterDeclarations?,
32-
context: ExtensionContext?,
31+
parameters: ParameterDeclarations,
32+
context: ExtensionContext,
3333
): Stream<out Arguments> = Stream.of(
3434
Arguments.of(
3535
7L,

src/test/kotlin/dev/shtanko/algorithms/bitwise/EvenOrOddTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import org.junit.jupiter.params.support.ParameterDeclarations
2828
class EvenOrOddTest {
2929
private class InputArgumentsProvider : ArgumentsProvider {
3030
override fun provideArguments(
31-
parameters: ParameterDeclarations?,
32-
context: ExtensionContext?,
31+
parameters: ParameterDeclarations,
32+
context: ExtensionContext,
3333
): Stream<out Arguments> = Stream.of(
3434
Arguments.of(0, false),
3535
Arguments.of(2, true),

src/test/kotlin/dev/shtanko/algorithms/codility/BinaryGapTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class BinaryGapTest {
3030

3131
internal class InputArgumentsProvider : ArgumentsProvider {
3232
override fun provideArguments(
33-
parameters: ParameterDeclarations?,
34-
context: ExtensionContext?,
33+
parameters: ParameterDeclarations,
34+
context: ExtensionContext,
3535
): Stream<out Arguments> = args().stream().map {
3636
Arguments.of(
3737
it.first,

src/test/kotlin/dev/shtanko/algorithms/codingbat/array1/FirstLast6Test.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import org.junit.jupiter.params.support.ParameterDeclarations
2828
abstract class FirstLast6Test<out T : FirstLast6>(private val strategy: T) {
2929
private class InputArgumentsProvider : ArgumentsProvider {
3030
override fun provideArguments(
31-
parameters: ParameterDeclarations?,
32-
context: ExtensionContext?,
31+
parameters: ParameterDeclarations,
32+
context: ExtensionContext,
3333
): Stream<out Arguments> = Stream.of(
3434
Arguments.of(
3535
intArrayOf(1, 2, 6),

0 commit comments

Comments
 (0)