File tree 3 files changed +24
-0
lines changed
kotlin/org/jetbrains/kotlinx/dataframe/io
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ dependencies {
42
42
testApi(project(" :core" ))
43
43
testImplementation(libs.kotlinx.benchmark.runtime)
44
44
testImplementation(libs.junit)
45
+ testImplementation(libs.sl4jsimple)
45
46
testImplementation(libs.kotestAssertions) {
46
47
exclude(" org.jetbrains.kotlin" , " kotlin-stdlib-jdk8" )
47
48
}
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ import org.jetbrains.kotlinx.dataframe.api.isEmpty
19
19
import org.jetbrains.kotlinx.dataframe.api.print
20
20
import org.jetbrains.kotlinx.dataframe.api.schema
21
21
import org.jetbrains.kotlinx.dataframe.api.toStr
22
+ import org.jetbrains.kotlinx.dataframe.impl.io.FastDoubleParser
23
+ import org.junit.After
24
+ import org.junit.Before
22
25
import org.junit.Test
23
26
import java.io.File
24
27
import java.io.StringWriter
@@ -32,6 +35,22 @@ import kotlin.reflect.typeOf
32
35
@Suppress(" ktlint:standard:argument-list-wrapping" )
33
36
class DelimCsvTsvTests {
34
37
38
+ private val logLevel = " org.slf4j.simpleLogger.log.${FastDoubleParser ::class .qualifiedName} "
39
+ private var loggerBefore: String? = null
40
+
41
+ @Before
42
+ fun setLogger () {
43
+ loggerBefore = System .getProperty(logLevel)
44
+ System .setProperty(logLevel, " debug" )
45
+ }
46
+
47
+ @After
48
+ fun restoreLogger () {
49
+ if (loggerBefore != null ) {
50
+ System .setProperty(logLevel, loggerBefore)
51
+ }
52
+ }
53
+
35
54
@Test
36
55
fun readNulls () {
37
56
@Language(" CSV" )
Original file line number Diff line number Diff line change @@ -32,3 +32,7 @@ org.slf4j.simpleLogger.showLogName=true
32
32
# Set to true if you want the last component of the name to be included in output messages.
33
33
# Defaults to false.
34
34
# org.slf4j.simpleLogger.showShortLogName=false
35
+
36
+ # Disables FastDoubleParser debug logs by default in our tests
37
+ # Can be enabled by setting the system property programmatically
38
+ org.slf4j.simpleLogger.log.org.jetbrains.kotlinx.dataframe.impl.io.FastDoubleParser =warn
You can’t perform that action at this time.
0 commit comments