Skip to content

Commit

Permalink
damn you ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
lamba92 committed Jul 23, 2024
1 parent 907114a commit f2638d3
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit f2638d3

Please sign in to comment.