Merge pull request #2948 from element-hq/feature/bma/konsistUpgrade

Konsist upgrade
This commit is contained in:
Benoit Marty 2024-05-31 09:18:43 +02:00 committed by GitHub
commit 155fd4ab81
51 changed files with 66 additions and 45 deletions

View file

@ -39,7 +39,7 @@ import kotlinx.coroutines.test.runTest
import org.junit.Test
@OptIn(ExperimentalCoroutinesApi::class)
class AsyncIndicatorTests {
class AsyncIndicatorTest {
@Test
fun `initial state`() = runTest {
val state = AsyncIndicatorState()

View file

@ -21,7 +21,7 @@ import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.test.runTest
import org.junit.Test
class SnackbarDispatcherTests {
class SnackbarDispatcherTest {
@Test
fun `given an empty queue the flow emits a null item`() = runTest {
val snackbarDispatcher = SnackbarDispatcher()

View file

@ -17,8 +17,10 @@
package io.element.android.libraries.matrix.api.core
import android.os.Parcelable
import androidx.compose.runtime.Immutable
import kotlinx.parcelize.Parcelize
@Immutable
sealed interface RoomIdOrAlias : Parcelable {
@Parcelize
@JvmInline

View file

@ -24,7 +24,7 @@ import io.element.android.libraries.matrix.test.room.aRoomSummaryFilled
import kotlinx.coroutines.test.runTest
import org.junit.Test
class RoomListFilterTests {
class RoomListFilterTest {
private val regularRoom = aRoomSummaryFilled(
aRoomSummaryDetails(
isDirect = false

View file

@ -39,7 +39,7 @@ import org.matrix.rustcomponents.sdk.TaskHandle
// NOTE: this class is using a fake implementation of a Rust SDK interface which returns actual Rust objects with pointers.
// Since we don't access the data in those objects, this is fine for our tests, but that's as far as we can test this class.
class RoomSummaryListProcessorTests {
class RoomSummaryListProcessorTest {
private val summaries = MutableStateFlow<List<RoomSummary>>(emptyList())
@Test

View file

@ -32,7 +32,7 @@ import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class MediaSenderTests {
class MediaSenderTest {
@Test
fun `given an attachment when sending it the preprocessor always runs`() = runTest {
val preProcessor = FakeMediaPreProcessor()

View file

@ -32,7 +32,7 @@ import kotlinx.coroutines.test.runTest
import org.junit.Rule
import org.junit.Test
class RoomSelectPresenterTests {
class RoomSelectPresenterTest {
@get:Rule
val warmUpRule = WarmUpRule()

View file

@ -28,7 +28,7 @@ import kotlinx.coroutines.test.runTest
import org.junit.Before
import org.junit.Test
class DatabaseSessionStoreTests {
class DatabaseSessionStoreTest {
private lateinit var database: SessionDatabase
private lateinit var databaseSessionStore: DatabaseSessionStore

View file

@ -28,7 +28,7 @@ import io.element.android.services.analytics.test.FakeAnalyticsService
import kotlinx.coroutines.test.runTest
import org.junit.Test
class TroubleshootNotificationsPresenterTests {
class TroubleshootNotificationsPresenterTest {
@Test
fun `present - initial state`() = runTest {
val presenter = createTroubleshootNotificationsPresenter()