Coverage Summary for Class: HomeViewModel (com.stslex93.notes.feature.home.ui)

Class Class, % Method, % Branch, % Line, % Instruction, %
HomeViewModel 0% (0/1) 0% (0/2) 0% (0/4) 0% (0/6) 0% (0/33)


 package com.stslex93.notes.feature.home.ui
 
 import com.stslex93.notes.core.ui.base.BaseViewModel
 import com.stslex93.notes.feature.home.navigation.HomeRouter
 import com.stslex93.notes.feature.home.ui.store.HomeStore
 import com.stslex93.notes.feature.home.ui.store.HomeStore.Action
 import com.stslex93.notes.feature.home.ui.store.HomeStore.Event
 import com.stslex93.notes.feature.home.ui.store.HomeStore.Event.Navigation
 import com.stslex93.notes.feature.home.ui.store.HomeStore.State
 import javax.inject.Inject
 
 class HomeViewModel @Inject constructor(
     store: HomeStore,
     private val router: HomeRouter,
 ) : BaseViewModel<State, Event, Action>(store) {
 
     fun processNavigation(event: Navigation) {
         when (event) {
             is Navigation.EditNote -> router.navToEditNote(event.noteId)
             is Navigation.CreateNote -> router.navToCreateNote()
             is Navigation.EditLabel -> router.navToEditLabel(event.noteIds)
         }
     }
 }