summaryrefslogtreecommitdiff
path: root/android-app/app/src/test/kotlin/androidx
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-03-25 20:29:41 +0000
committerClaudomator Agent <agent@claudomator>2026-03-25 20:29:41 +0000
commit62cebb86e20cdf9fcdfaa3eab2b39836d4cc993e (patch)
treed359d9fe84b37fb72a5673bf72b29b9eedf95409 /android-app/app/src/test/kotlin/androidx
feat(track): wire NMEA wind data into GPS track pointsHEADmaster
MainViewModel caches the latest WindData from LocationService.nmeaWindDataFlow via updateWind(). addGpsPoint() populates TrackPoint wind fields from the cache, defaulting to zero if no NMEA wind sentence has arrived yet. MainActivity.observeDataSources() feeds LocationService.nmeaWindDataFlow into viewModel.updateWind() alongside the existing GPS and anchor observers. 3 new unit tests in MainViewModelWindTest verify zero-default, wind capture, and mid-track wind update behaviour. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/test/kotlin/androidx')
-rw-r--r--android-app/app/src/test/kotlin/androidx/arch/core/executor/testing/InstantTaskExecutorRule.kt13
1 files changed, 13 insertions, 0 deletions
diff --git a/android-app/app/src/test/kotlin/androidx/arch/core/executor/testing/InstantTaskExecutorRule.kt b/android-app/app/src/test/kotlin/androidx/arch/core/executor/testing/InstantTaskExecutorRule.kt
new file mode 100644
index 0000000..96bf63a
--- /dev/null
+++ b/android-app/app/src/test/kotlin/androidx/arch/core/executor/testing/InstantTaskExecutorRule.kt
@@ -0,0 +1,13 @@
+package androidx.arch.core.executor.testing
+
+import org.junit.rules.TestRule
+import org.junit.runner.Description
+import org.junit.runners.model.Statement
+
+/**
+ * No-op stub: provides the InstantTaskExecutorRule type so test files compile
+ * on JVM. The real rule is only needed for LiveData; these tests use StateFlow.
+ */
+class InstantTaskExecutorRule : TestRule {
+ override fun apply(base: Statement, description: Description): Statement = base
+}