From f2638d3730b77e25fd573391cc837d86413c1622 Mon Sep 17 00:00:00 2001 From: Lamberto Basti Date: Tue, 23 Jul 2024 22:00:07 +0200 Subject: [PATCH] damn you ktlint --- .../kotlinx/document/database/KotlinxDocumentDatabase.kt | 2 +- .../document/database/tests/mvstore/MVStoreTests.kt | 4 ++-- .../document/database/tests/AbstractDeleteTests.kt | 6 +++--- .../kotlinx/document/database/tests/AbstractFindTests.kt | 6 +++--- .../kotlinx/document/database/tests/AbstractIndexTests.kt | 8 ++++---- .../document/database/tests/AbstractInsertTests.kt | 6 +++--- .../document/database/tests/AbstractUpdateTests.kt | 8 ++++---- .../kotlin/kotlinx/document/database/tests/TestUtils.kt | 2 +- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/core/src/commonMain/kotlin/kotlinx/document/database/KotlinxDocumentDatabase.kt b/core/src/commonMain/kotlin/kotlinx/document/database/KotlinxDocumentDatabase.kt index 007e0f0..43fb06f 100644 --- a/core/src/commonMain/kotlin/kotlinx/document/database/KotlinxDocumentDatabase.kt +++ b/core/src/commonMain/kotlin/kotlinx/document/database/KotlinxDocumentDatabase.kt @@ -1,6 +1,5 @@ package kotlinx.document.database -import kotlin.jvm.JvmName import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.toList @@ -16,6 +15,7 @@ import kotlinx.serialization.json.JsonElement import kotlinx.serialization.json.JsonObject import kotlinx.serialization.json.JsonPrimitive import kotlinx.serialization.serializer +import kotlin.jvm.JvmName public class KotlinxDocumentDatabase internal constructor( private val store: DataStore, diff --git a/stores/mvstore/src/test/kotlin/kotlinx/document/database/tests/mvstore/MVStoreTests.kt b/stores/mvstore/src/test/kotlin/kotlinx/document/database/tests/mvstore/MVStoreTests.kt index a4e2be8..9edb3a0 100644 --- a/stores/mvstore/src/test/kotlin/kotlinx/document/database/tests/mvstore/MVStoreTests.kt +++ b/stores/mvstore/src/test/kotlin/kotlinx/document/database/tests/mvstore/MVStoreTests.kt @@ -2,8 +2,6 @@ package kotlinx.document.database.tests.mvstore -import kotlin.io.path.Path -import kotlin.io.path.deleteIfExists import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import kotlinx.document.database.mvstore.MVDataStore @@ -15,6 +13,8 @@ import kotlinx.document.database.tests.AbstractInsertTests import kotlinx.document.database.tests.AbstractObjectCollectionTests import kotlinx.document.database.tests.AbstractUpdateTests import kotlinx.document.database.tests.DatabaseDeleter +import kotlin.io.path.Path +import kotlin.io.path.deleteIfExists class MVStoreDeleteTests : AbstractDeleteTests(MVDataStore.open(DB_PATH)), diff --git a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractDeleteTests.kt b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractDeleteTests.kt index fbafea8..4c2d0aa 100644 --- a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractDeleteTests.kt +++ b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractDeleteTests.kt @@ -2,13 +2,13 @@ package kotlinx.document.database.tests -import kotlin.js.JsName -import kotlin.test.Test -import kotlin.test.assertEquals import kotlinx.coroutines.flow.count import kotlinx.document.database.DataStore import kotlinx.document.database.getObjectCollection import kotlinx.serialization.json.JsonPrimitive +import kotlin.js.JsName +import kotlin.test.Test +import kotlin.test.assertEquals abstract class AbstractDeleteTests(store: DataStore) : BaseTest(store) { @Test diff --git a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractFindTests.kt b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractFindTests.kt index 18dbbd2..35819d4 100644 --- a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractFindTests.kt +++ b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractFindTests.kt @@ -1,12 +1,12 @@ package kotlinx.document.database.tests -import kotlin.js.JsName -import kotlin.test.Test -import kotlin.test.assertEquals import kotlinx.coroutines.flow.first import kotlinx.document.database.DataStore import kotlinx.document.database.find import kotlinx.document.database.getObjectCollection +import kotlin.js.JsName +import kotlin.test.Test +import kotlin.test.assertEquals abstract class AbstractFindTests(store: DataStore) : BaseTest(store) { @Test diff --git a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractIndexTests.kt b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractIndexTests.kt index ad35780..e4fb1d9 100644 --- a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractIndexTests.kt +++ b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractIndexTests.kt @@ -2,10 +2,6 @@ package kotlinx.document.database.tests -import kotlin.js.JsName -import kotlin.test.Test -import kotlin.test.assertEquals -import kotlin.test.assertTrue import kotlinx.coroutines.flow.first import kotlinx.document.database.DataStore import kotlinx.document.database.getObjectCollection @@ -15,6 +11,10 @@ import kotlinx.serialization.json.JsonPrimitive import kotlinx.serialization.json.encodeToJsonElement import kotlinx.serialization.json.jsonPrimitive import kotlinx.serialization.json.long +import kotlin.js.JsName +import kotlin.test.Test +import kotlin.test.assertEquals +import kotlin.test.assertTrue abstract class AbstractIndexTests(store: DataStore) : BaseTest(store) { companion object { diff --git a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractInsertTests.kt b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractInsertTests.kt index 879bb54..94a2945 100644 --- a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractInsertTests.kt +++ b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractInsertTests.kt @@ -1,14 +1,14 @@ package kotlinx.document.database.tests -import kotlin.js.JsName -import kotlin.test.Test -import kotlin.test.assertEquals import kotlinx.coroutines.flow.first import kotlinx.document.database.DataStore import kotlinx.document.database.find import kotlinx.document.database.getObjectCollection import kotlinx.serialization.json.JsonPrimitive import kotlinx.serialization.json.encodeToJsonElement +import kotlin.js.JsName +import kotlin.test.Test +import kotlin.test.assertEquals abstract class AbstractInsertTests(store: DataStore) : BaseTest(store) { @Test diff --git a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractUpdateTests.kt b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractUpdateTests.kt index 822cea1..b506e95 100644 --- a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractUpdateTests.kt +++ b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/AbstractUpdateTests.kt @@ -1,13 +1,13 @@ package kotlinx.document.database.tests -import kotlin.js.JsName -import kotlin.test.Test -import kotlin.test.assertEquals -import kotlin.test.assertTrue import kotlinx.coroutines.flow.single import kotlinx.document.database.DataStore import kotlinx.document.database.getObjectCollection import kotlinx.serialization.json.JsonPrimitive +import kotlin.js.JsName +import kotlin.test.Test +import kotlin.test.assertEquals +import kotlin.test.assertTrue abstract class AbstractUpdateTests(store: DataStore) : BaseTest(store) { @Test diff --git a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/TestUtils.kt b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/TestUtils.kt index d225500..338bd34 100644 --- a/tests/src/commonMain/kotlin/kotlinx/document/database/tests/TestUtils.kt +++ b/tests/src/commonMain/kotlin/kotlinx/document/database/tests/TestUtils.kt @@ -1,10 +1,10 @@ package kotlinx.document.database.tests -import kotlin.time.Duration.Companion.days import kotlinx.datetime.Clock import kotlinx.datetime.Instant import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable +import kotlin.time.Duration.Companion.days @Serializable data class TestUser(