fix: resolve all build compilation and style check warnings (#597)

* fix: resolve all build compilation and style check warnings

* fix: remove unused import in SystemViewModel
This commit is contained in:
M57 authored and GitHub committed 2026-07-14 21:55:37 +03:00
1 parent 48f5ffbe52
commit d1fc477bcd
28 files changed
+293 -192

No files matched your search

@@ -52,7 +52,7 @@ class AuthManagerTest {
every { android.util.Log.i(any(), any()) } returns 0
// Mock filesDir to point to temporary directory for DataStore
val tempDir = java.io.File(System.getProperty("java.io.tmpdir"))
val tempDir = java.io.File(System.getProperty("java.io.tmpdir") ?: "/tmp")
testContext = TestContext(tempDir, mockContext)
val tempFile = java.io.File(tempDir, "server_store.json")
@@ -101,7 +101,7 @@ class AuthManagerTest {
@After
fun tearDown() {
val tempDir = java.io.File(System.getProperty("java.io.tmpdir"))
val tempDir = java.io.File(System.getProperty("java.io.tmpdir") ?: "/tmp")
val tempFile = java.io.File(tempDir, "server_store.json")
if (tempFile.exists()) {
tempFile.delete()
@@ -430,7 +430,14 @@ class HermesApiServiceTest {
assertEquals(100L, body?.daily?.first()?.input_tokens)
assertEquals(0.03, body?.totals?.total_estimated_cost)
assertEquals(2, body?.skills?.summary?.distinct_skills_used)
assertEquals("x", body?.skills?.top_skills?.first()?.skill)
assertEquals(
"x",
body
?.skills
?.top_skills
?.first()
?.skill,
)
assertEquals(1, body?.tools?.size)
assertEquals("terminal", body?.tools?.first()?.tool)
assertEquals(21820, body?.tools?.first()?.count)