mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-03 03:44:54 +00:00
81 new unit tests covering each record type in each category plus the RealHealthConnectRepository dispatcher: - ActivityQueriesTest (19) -- all 13 activity record types, limit, range forwarding, summary with and without Steps permission. - BodyQueriesTest (11) -- all 6 body types, summary with and without Weight permission. - SleepQueriesTest (6) -- SleepSession shape and sleep_hours summary computation. - VitalsQueriesTest (16) -- all 10 vitals types, heart rate average summary with and without permission. - NutritionQueriesTest (7) -- Hydration and Nutrition with optional field absence. - ReproductiveQueriesTest (10) -- all 6 reproductive types. - MindfulnessQueriesTest (5) -- MindfulnessSession. - RealHealthConnectRepositoryTest (7) -- dispatch routing and summary composition across categories. Tests drive the category classes through a FakeRecordReader seam so no Health Connect SDK calls or Robolectric are needed. Metadata uses Metadata.manualEntry for stable test fixtures. RealHealthConnectRepository's internal constructor was rewritten to expose categoriesProvider / grantedPermissionsProvider / historicalReadGrantedProvider seams so the dispatcher can be tested without reaching HealthConnectClient. |
||
|---|---|---|
| .. | ||
| screenshots | ||
| src | ||
| build.gradle.kts | ||
| google-services.json | ||
| proguard-rules.pro | ||