Wholphin/app/src/main/java/com/github/damontecres/wholphin/data
Damontecres 8e0798ee16
Unit tests for PlaybackViewModel & several services (#1592)
## Description
This PR contains only tests, there are no user facing changes.

Adds tests for playback covering:
- Playing next, previous, or within the queue
- Media segments (intro/credit)
- Playing intros before media

Adds basic unit tests for track selection. This uses a new "test track"
builder which can model various files and build them as represented
(differently) by the server, ExoPlayer, and MPV. In future, this will
allow for testing of more complex files.

Also add unit tests for services covering things like:
- Fetching extras
- Deleting media
- Server/user management & auth

### Related issues
Will help with testing/verifying some issues like #1475, #1548 

### Testing
Ran the unit tests!

## Screenshots
N/A

## AI or LLM usage
None
2026-06-19 11:06:35 -04:00
..
filter Add studio tab & filtering to TV show libraries (#1211) 2026-04-07 16:03:58 -04:00
model Unit tests for PlaybackViewModel & several services (#1592) 2026-06-19 11:06:35 -04:00
AppDatabase.kt Store remembered tabs in app database instead of preferences (#1541) 2026-06-08 13:45:38 -04:00
ExtrasItem.kt Fix issues from #1530 2026-06-14 19:55:01 -04:00
ItemPlaybackDao.kt More subtitle selection fixes (#630) 2026-01-04 17:06:54 -05:00
ItemPlaybackRepository.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00
JellyfinServerDao.kt Add setting to protect a user profile with a PIN (#356) 2025-12-04 14:37:27 -05:00
LibraryDisplayInfoDao.kt Better collection pages including more view options (#1137) 2026-03-28 10:31:03 -04:00
PlaybackEffectDao.kt Add support for viewing photos in photo albums (#703) 2026-02-04 20:04:46 -05:00
PlaybackLanguageChoiceDao.kt More subtitle selection fixes (#630) 2026-01-04 17:06:54 -05:00
RememberedTabDao.kt Store remembered tabs in app database instead of preferences (#1541) 2026-06-08 13:45:38 -04:00
SeerrServerDao.kt Fixes for Jellyseerr login issues (#1031) 2026-03-04 15:11:09 -05:00
ServerPreferencesDao.kt Dependency updates & removing unused code (#70) 2025-10-26 18:17:47 -04:00
ServerRepository.kt Use Wholphin-specific dispatchers (#1583) 2026-06-18 11:17:19 -04:00