mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-12-20 05:05:50 +00:00
improve tests of repos
This commit is contained in:
@@ -1,20 +1,9 @@
|
||||
package full
|
||||
|
||||
import CommonKeyValueRepoTests
|
||||
import dev.inmo.micro_utils.repos.*
|
||||
import kotlinx.coroutines.test.TestResult
|
||||
import kotlin.test.*
|
||||
import dev.inmo.micro_utils.repos.KeyValueRepo
|
||||
import dev.inmo.micro_utils.repos.MapKeyValueRepo
|
||||
import dev.inmo.micro_utils.repos.common.tests.CommonKeyValueRepoTests
|
||||
|
||||
class InMemoryKeyValueRepoTests : CommonKeyValueRepoTests() {
|
||||
override val repoCreator: suspend () -> KeyValueRepo<String, String> = { MapKeyValueRepo() }
|
||||
|
||||
@Test
|
||||
override fun creatingWorksProperly(): TestResult {
|
||||
return super.creatingWorksProperly()
|
||||
}
|
||||
|
||||
@Test
|
||||
override fun unsettingWorksProperly(): TestResult {
|
||||
return super.unsettingWorksProperly()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user