Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

fix: detekt violations in ChatRunnerLifecycleTest (import order, arg wrapping)

Rishabh Bajpai9f57ec49189b
diff --git a/app/src/test/java/com/gotcha/agent/ChatRunnerLifecycleTest.kt b/app/src/test/java/com/gotcha/agent/ChatRunnerLifecycleTest.kt
index 8664df2..8a946a9 100644
--- a/app/src/test/java/com/gotcha/agent/ChatRunnerLifecycleTest.kt
+++ b/app/src/test/java/com/gotcha/agent/ChatRunnerLifecycleTest.kt
@@ -11,15 +11,15 @@ import androidx.test.core.app.ApplicationProvider
import com.gotcha.GotchaApp
import com.gotcha.data.ChatHistoryRepository
import com.gotcha.data.ChatSession
-import com.gotcha.data.RunSummary
-import com.gotcha.llm.ChatMessage
-import com.gotcha.notifications.AttentionNotifier
import com.gotcha.data.LlmProvider
+import com.gotcha.data.RunSummary
import com.gotcha.data.Settings
import com.gotcha.data.SettingsRepository
+import com.gotcha.llm.ChatMessage
+import com.gotcha.notifications.AttentionNotifier
import com.gotcha.service.ChatRunService
-import com.gotcha.tools.AgentMode
import com.gotcha.testsupport.FakeAndroidKeyStore
+import com.gotcha.tools.AgentMode
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
@@ -336,7 +336,14 @@ class ChatRunnerLifecycleTest {
// Saved, and not the chat the engine is on, so the first send suspends
// loading it from disk before the run shows as busy.
runBlocking {
- historyRepository.saveSession(ChatSession(id = "double-tap", title = "Saved", lastModified = 0L, messages = emptyList()))
+ historyRepository.saveSession(
+ ChatSession(
+ id = "double-tap",
+ title = "Saved",
+ lastModified = 0L,
+ messages = emptyList()
+ )
+ )
}
runner().bindFresh("elsewhere", AgentMode.MONITOR)
val view = ViewedChat("double-tap", emptyList(), AgentMode.MONITOR, personaId = null)