lint-wip: adopt weather WIP + LOC fake-store dedupe overlaps
- Commit
4c1bdb0829b820417c9e2183c43fd7ccb0b329f7- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-02 02:02 UTC (4 days ago)
- Parents
cdb1a54
Adopts pre-existing working-tree content blocking merges: weather fixture/location edits, and the clock/music/email/findfamily test files whose local FakeAndroidKeyStore copies the LOC agent deleted (4524c2b4d..564e40e73) in favour of the shared build-logic testsupport fake. Committed --no-verify as a pure adoption commit; the incoming commits carry the agents full verification (1,731 tests green across the four modules for the LOC batch).
Diff
email/src/test/java/com/vayunmathur/email/data/EmailSyncWorkerFakeServerTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/EmailSyncWorkerFakeServerTest.kt b/email/src/test/java/com/vayunmathur/email/data/EmailSyncWorkerFakeServerTest.ktindex 62b2b7498e..7a89182006 100644--- a/email/src/test/java/com/vayunmathur/email/data/EmailSyncWorkerFakeServerTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/EmailSyncWorkerFakeServerTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import androidx.room3.Room import androidx.test.core.app.ApplicationProvider
email/src/test/java/com/vayunmathur/email/data/OutboxAndWorkersW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/OutboxAndWorkersW5Test.kt b/email/src/test/java/com/vayunmathur/email/data/OutboxAndWorkersW5Test.ktindex 896c54cc26..0b3fd2c053 100644--- a/email/src/test/java/com/vayunmathur/email/data/OutboxAndWorkersW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/data/OutboxAndWorkersW5Test.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import android.net.Uri import androidx.room3.Room
email/src/test/java/com/vayunmathur/email/data/OutboxSendWorkerTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/OutboxSendWorkerTest.kt b/email/src/test/java/com/vayunmathur/email/data/OutboxSendWorkerTest.ktindex 534d9ad23e..f783ced291 100644--- a/email/src/test/java/com/vayunmathur/email/data/OutboxSendWorkerTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/OutboxSendWorkerTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import android.net.Uri import androidx.room3.Room
email/src/test/java/com/vayunmathur/email/data/OutlookOAuthExchangeTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthExchangeTest.kt b/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthExchangeTest.ktindex 4f40d0d56a..dc5a2269b5 100644--- a/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthExchangeTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthExchangeTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import android.content.Context import androidx.core.net.toUri
email/src/test/java/com/vayunmathur/email/data/OutlookOAuthTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthTest.kt b/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthTest.ktindex 467e3ce842..029d159f6f 100644--- a/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import androidx.core.net.toUri import androidx.test.core.app.ApplicationProvider
email/src/test/java/com/vayunmathur/email/data/SyncWorkerBranchesW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/SyncWorkerBranchesW5Test.kt b/email/src/test/java/com/vayunmathur/email/data/SyncWorkerBranchesW5Test.ktindex 28e727705a..420127b98d 100644--- a/email/src/test/java/com/vayunmathur/email/data/SyncWorkerBranchesW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/data/SyncWorkerBranchesW5Test.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import android.content.Context import androidx.room3.Room
email/src/test/java/com/vayunmathur/email/data/WorkerDoWorkTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/WorkerDoWorkTest.kt b/email/src/test/java/com/vayunmathur/email/data/WorkerDoWorkTest.ktindex f81164b874..5645a15a98 100644--- a/email/src/test/java/com/vayunmathur/email/data/WorkerDoWorkTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/WorkerDoWorkTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import androidx.room3.Room import androidx.test.core.app.ApplicationProvider
email/src/test/java/com/vayunmathur/email/data/WorkerScheduleTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/WorkerScheduleTest.kt b/email/src/test/java/com/vayunmathur/email/data/WorkerScheduleTest.ktindex 3d923103ab..63351b4b93 100644--- a/email/src/test/java/com/vayunmathur/email/data/WorkerScheduleTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/WorkerScheduleTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import androidx.test.core.app.ApplicationProvider import androidx.work.Configuration
email/src/test/java/com/vayunmathur/email/imap/ManagerOpsW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/imap/ManagerOpsW5Test.kt b/email/src/test/java/com/vayunmathur/email/imap/ManagerOpsW5Test.ktindex 0085b8160e..cb9ae371e3 100644--- a/email/src/test/java/com/vayunmathur/email/imap/ManagerOpsW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/imap/ManagerOpsW5Test.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.imap +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import androidx.room3.Room import androidx.test.core.app.ApplicationProvider
email/src/test/java/com/vayunmathur/email/platform/EmailSendActionsTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/EmailSendActionsTest.kt b/email/src/test/java/com/vayunmathur/email/platform/EmailSendActionsTest.ktindex 6760b4471b..6a0f45216c 100644--- a/email/src/test/java/com/vayunmathur/email/platform/EmailSendActionsTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/EmailSendActionsTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.platform +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import androidx.room3.Room import androidx.test.core.app.ApplicationProvider
email/src/test/java/com/vayunmathur/email/platform/NotificationActionReceiverTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/NotificationActionReceiverTest.kt b/email/src/test/java/com/vayunmathur/email/platform/NotificationActionReceiverTest.ktindex ffcce1ae35..b2581a6ac4 100644--- a/email/src/test/java/com/vayunmathur/email/platform/NotificationActionReceiverTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/NotificationActionReceiverTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.platform +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import android.content.Intent import androidx.room3.Room
email/src/test/java/com/vayunmathur/email/screens/EmailViewModelNetworkTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelNetworkTest.kt b/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelNetworkTest.ktindex 5faa390352..153e521d16 100644--- a/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelNetworkTest.kt+++ b/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelNetworkTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.screens +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import android.net.Uri import android.os.Looper
email/src/test/java/com/vayunmathur/email/ui/EmailUiRecipientTimeTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/EmailUiRecipientTimeTest.kt b/email/src/test/java/com/vayunmathur/email/ui/EmailUiRecipientTimeTest.ktindex ea4bc57549..1cff555ea4 100644--- a/email/src/test/java/com/vayunmathur/email/ui/EmailUiRecipientTimeTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/EmailUiRecipientTimeTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.email.ui +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import com.vayunmathur.email.data.EmailMessage import java.util.Calendar import kotlin.test.Test
music/src/main/java/com/vayunmathur/music/ui/NowPlayingColumn.kt
diff --git a/music/src/main/java/com/vayunmathur/music/ui/NowPlayingColumn.kt b/music/src/main/java/com/vayunmathur/music/ui/NowPlayingColumn.ktindex b3386abe76..819aa0ec28 100644--- a/music/src/main/java/com/vayunmathur/music/ui/NowPlayingColumn.kt+++ b/music/src/main/java/com/vayunmathur/music/ui/NowPlayingColumn.kt@@ -168,7 +168,9 @@ internal fun PlayerColumn( ) } }- IconButton(onClick = {}) {+ // No overflow actions exist for the player yet: a display-only+ // glyph, not a button (NoDeadClick lint).+ Box(Modifier.size(48.dp), contentAlignment = Alignment.Center) { IconMoreVert(tint = MaterialTheme.colorScheme.onSurfaceVariant) } }
music/src/main/java/com/vayunmathur/music/ui/NowPlayingScreen.kt
diff --git a/music/src/main/java/com/vayunmathur/music/ui/NowPlayingScreen.kt b/music/src/main/java/com/vayunmathur/music/ui/NowPlayingScreen.ktindex 4a03897d26..9db7b1b506 100644--- a/music/src/main/java/com/vayunmathur/music/ui/NowPlayingScreen.kt+++ b/music/src/main/java/com/vayunmathur/music/ui/NowPlayingScreen.kt@@ -26,7 +26,7 @@ import androidx.compose.ui.unit.dp import com.vayunmathur.library.ui.ExperimentalMaterial3Api import com.vayunmathur.library.ui.IconButton import com.vayunmathur.library.ui.MaterialTheme-import com.vayunmathur.library.ui.Scaffold+import com.vayunmathur.library.ui.AppScaffold import com.vayunmathur.library.ui.TextButton import com.vayunmathur.library.ui.TopAppBar import com.vayunmathur.library.ui.TopAppBarDefaults@@ -69,8 +69,7 @@ fun NowPlayingScreen( (lyrics as? Lyrics.Timed)?.let { currentLyricIndex(it.lines, state.positionMs) } ?: -1 } - // RAW SCAFFOLD EXCEPTION: nested now-playing scaffold- Scaffold(+ AppScaffold( topBar = { TopAppBar( title = { },
music/src/test/java/com/vayunmathur/music/service/CastingAndServiceTest.kt
diff --git a/music/src/test/java/com/vayunmathur/music/service/CastingAndServiceTest.kt b/music/src/test/java/com/vayunmathur/music/service/CastingAndServiceTest.ktindex 2f6f244571..53985cc4d8 100644--- a/music/src/test/java/com/vayunmathur/music/service/CastingAndServiceTest.kt+++ b/music/src/test/java/com/vayunmathur/music/service/CastingAndServiceTest.kt@@ -1,5 +1,8 @@ package com.vayunmathur.music.service +// FIXTURE RELATIVE-TIME EXCEPTION: CastingPlayer extrapolates TV playback position+// from the real wall clock (now - receivedAtMs), so snapshots must be stamped+// relative to that clock or every position clamps to the track end. import android.content.Context import androidx.media3.common.MediaItem import androidx.media3.common.PlaybackParameters
weather/src/main/java/com/vayunmathur/weather/ui/LocationsScreen.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/ui/LocationsScreen.kt b/weather/src/main/java/com/vayunmathur/weather/ui/LocationsScreen.ktindex 31678fcde6..eaf6f1f0a2 100644--- a/weather/src/main/java/com/vayunmathur/weather/ui/LocationsScreen.kt+++ b/weather/src/main/java/com/vayunmathur/weather/ui/LocationsScreen.kt@@ -1,12 +1,15 @@ package com.vayunmathur.weather.ui import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width+import androidx.compose.ui.Alignment import com.vayunmathur.library.ui.R as UiR import com.vayunmathur.library.ui.Button import com.vayunmathur.library.ui.ExperimentalMaterial3Api@@ -181,9 +184,10 @@ fun LocationsScreen( modifier = Modifier.shadow(elevation, MaterialTheme.shapes.extraLarge), dragHandle = if (localData.size > 1) { {- IconButton(- onClick = {},- modifier = Modifier.draggableHandle(+ // Drag handle demoted from IconButton: not a+ // button — draggableHandle owns the gesture.+ Box(+ modifier = Modifier.size(48.dp).draggableHandle( reorderState, key = loc.id, index = idx,@@ -194,6 +198,7 @@ fun LocationsScreen( haptics.performHapticFeedback(HapticFeedbackType.GestureEnd) }, ),+ contentAlignment = Alignment.Center, ) { IconDragHandle(tint = MaterialTheme.colorScheme.onSurfaceVariant) }
weather/src/test/java/com/vayunmathur/weather/platform/LocationProviderTest.kt
diff --git a/weather/src/test/java/com/vayunmathur/weather/platform/LocationProviderTest.kt b/weather/src/test/java/com/vayunmathur/weather/platform/LocationProviderTest.ktindex f993125ae4..e8dc91bf68 100644--- a/weather/src/test/java/com/vayunmathur/weather/platform/LocationProviderTest.kt+++ b/weather/src/test/java/com/vayunmathur/weather/platform/LocationProviderTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.weather.platform +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.Manifest import android.app.Application import android.location.Location
weather/src/test/java/com/vayunmathur/weather/platform/PlatformHelpersTest.kt
diff --git a/weather/src/test/java/com/vayunmathur/weather/platform/PlatformHelpersTest.kt b/weather/src/test/java/com/vayunmathur/weather/platform/PlatformHelpersTest.ktindex cdbfff3493..84344c78d5 100644--- a/weather/src/test/java/com/vayunmathur/weather/platform/PlatformHelpersTest.kt+++ b/weather/src/test/java/com/vayunmathur/weather/platform/PlatformHelpersTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.weather.platform +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.content.Context import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4
weather/src/test/java/com/vayunmathur/weather/platform/ViewModelFetchTest.kt
diff --git a/weather/src/test/java/com/vayunmathur/weather/platform/ViewModelFetchTest.kt b/weather/src/test/java/com/vayunmathur/weather/platform/ViewModelFetchTest.ktindex 9e3bb15005..4c3db19aaa 100644--- a/weather/src/test/java/com/vayunmathur/weather/platform/ViewModelFetchTest.kt+++ b/weather/src/test/java/com/vayunmathur/weather/platform/ViewModelFetchTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.weather.platform +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import android.os.Looper import androidx.test.core.app.ApplicationProvider