feat: Integrate Mokkery and Turbine into KMP testing framework (#4845)

This commit is contained in:
James Rich 2026-03-18 18:33:37 -05:00 committed by GitHub
parent df3a094430
commit dcbbc0823b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
159 changed files with 1860 additions and 2809 deletions

View file

@ -17,7 +17,8 @@
package org.meshtastic.app.service
import android.app.Notification
import io.mockk.mockk
import dev.mokkery.MockMode
import dev.mokkery.mock
import org.meshtastic.core.model.Node
import org.meshtastic.core.repository.MeshServiceNotifications
import org.meshtastic.core.repository.RadioInterfaceService
@ -25,7 +26,7 @@ import org.meshtastic.proto.ClientNotification
import org.meshtastic.proto.Telemetry
class Fakes {
val service: RadioInterfaceService = mockk(relaxed = true)
val service: RadioInterfaceService = mock(MockMode.autofill)
}
class FakeMeshServiceNotifications : MeshServiceNotifications {
@ -34,7 +35,7 @@ class FakeMeshServiceNotifications : MeshServiceNotifications {
override fun initChannels() {}
override fun updateServiceStateNotification(summaryString: String?, telemetry: Telemetry?): Notification =
mockk(relaxed = true)
mock(MockMode.autofill)
override suspend fun updateMessageNotification(
contactKey: String,