Coverage Summary for Class: DrawerNavigationImpl (com.vsevolodganin.clicktrack.drawer)

Class Class, % Method, % Branch, % Line, % Instruction, %
DrawerNavigationImpl 0% (0/1) 0% (0/4) 0% (0/5) 0% (0/21)


 package com.vsevolodganin.clicktrack.drawer
 
 import com.arkivanov.decompose.Cancellation
 import com.arkivanov.decompose.router.children.NavigationSource
 import com.arkivanov.decompose.router.children.SimpleNavigation
 
 interface DrawerNavigation {
     fun openDrawer()
 
     fun closeDrawer()
 }
 
 interface DrawerNavigationSource : NavigationSource<Boolean>
 
 class DrawerNavigationImpl : DrawerNavigation, DrawerNavigationSource {
 
     private val impl = SimpleNavigation<Boolean>()
 
     override fun openDrawer() = impl.navigate(true)
 
     override fun closeDrawer() = impl.navigate(false)
 
     override fun subscribe(observer: (Boolean) -> Unit): Cancellation = impl.subscribe(observer)
 }