Coverage Summary for Class: OnlineFirstRunModule (com.georgeci.moneysurfer.di)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| OnlineFirstRunModule |
50%
(1/2)
|
|
50%
(1/2)
|
50%
(2/4)
|
| OnlineFirstRunModule$firstRunSeeder$1 |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/1)
|
| Total |
33.3%
(1/3)
|
|
33.3%
(1/3)
|
40%
(2/5)
|
package com.georgeci.moneysurfer.di
import com.georgeci.moneysurfer.domain.firstrun.FirstRunSeeder
import org.koin.core.annotation.Module
import org.koin.core.annotation.Single
/**
* Online build has nothing to seed at first run — Firestore-backed onboarding (sign-in,
* workspace selector / creation) handles the empty-state path. Bind a no-op so
* `AppLaunchViewModel` can depend on `FirstRunSeeder` unconditionally; mirrors the offline
* override in `OfflineWiring.offlineFirstRunModule`.
*/
@Module
class OnlineFirstRunModule {
@Single
fun firstRunSeeder(): FirstRunSeeder = FirstRunSeeder { /* no-op */ }
}