• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Idrinth / habit-evaluator / 22285520396
40%

Build:
DEFAULT BRANCH: the-one
Ran 22 Feb 2026 09:17PM UTC
Jobs 8
Files 284
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Feb 2026 09:16PM UTC coverage: 42.916% (-0.8%) from 43.68%
22285520396

push

github

web-flow
Fix Android crash when loading data after migration to Room (#566)

The Kotlin/Compose migration (#559) introduced two crash scenarios:

1. Pre-Room database conflict: The old SQLiteHelper and new Room both used
   "habit_evaluator.db" (version 10). Room cannot open a database lacking
   its room_master_table metadata, causing IllegalStateException on first
   data access. Fix: detect pre-Room databases before Room initializes,
   rename them to a legacy file, add fallbackToDestructiveMigration() as
   safety net, and migrate data via new LegacySqliteToRoomMigration class.

2. Empty string parsing in EntityMappers: toEntity() methods stored "" for
   null time/date fields, but toModel() called LocalTime.parse("") which
   throws DateTimeParseException. Fix: add safe parsing helpers that return
   null for empty/invalid strings instead of crashing.

Also moved migration code off the main thread to prevent ANR during
database initialization.

https://claude.ai/code/session_01F33UgLjkt8TQ9h4TXBmmv9

Co-authored-by: Claude <noreply@anthropic.com>

2631 of 6734 branches covered (39.07%)

Branch coverage included in aggregate %.

9276 of 21011 relevant lines covered (44.15%)

2.23 hits per line

Coverage Regressions

Lines Coverage ∆ File
116
0.0
0.0% de/idrinth/habitevaluator/android/AppViewModel.kt
37
0.0
0.0% de/idrinth/habitevaluator/android/persistence/AppDatabase.kt
11
79.08
0.37% de/idrinth/habitevaluator/android/persistence/EntityMappers.kt
Jobs
ID Job ID Ran Files Coverage
1 website-e2e - 22285520396.1 22 Feb 2026 09:17PM UTC 9
39.08
GitHub Action Run
2 android - 22285520396.2 22 Feb 2026 09:20PM UTC 78
11.42
GitHub Action Run
3 website - 22285520396.3 22 Feb 2026 09:17PM UTC 3
88.65
GitHub Action Run
4 webserver - 22285520396.4 22 Feb 2026 09:18PM UTC 68
68.12
GitHub Action Run
5 homepage - 22285520396.5 22 Feb 2026 09:17PM UTC 4
100.0
GitHub Action Run
6 shared - 22285520396.6 22 Feb 2026 09:18PM UTC 93
79.32
GitHub Action Run
7 homepage-e2e - 22285520396.7 22 Feb 2026 09:17PM UTC 9
75.0
GitHub Action Run
8 desktop - 22285520396.8 22 Feb 2026 09:18PM UTC 26
43.1
GitHub Action Run
Source Files on build 22285520396
  • Tree
  • List 284
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22285520396
  • 0f170280 on github
  • Prev Build on the-one (#22285261576)
  • Next Build on the-one (#22285682163)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc