Coverage Summary for Class: NavigationHostKt (com.stslex93.notes.ui)
Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
NavigationHostKt |
0%
(0/1)
|
0%
(0/10)
|
0%
(0/7)
|
0%
(0/83)
|
NavigationHostKt$NavigationHost$1$1 |
0%
(0/1)
|
|
0%
(0/2)
|
0%
(0/8)
|
NavigationHostKt$NavigationHost$2 |
|
Total |
0%
(0/2)
|
0%
(0/10)
|
0%
(0/9)
|
0%
(0/91)
|
1 package com.stslex93.notes.ui
2
3 import androidx.compose.runtime.Composable
4 import androidx.compose.ui.Modifier
5 import androidx.navigation.NavHostController
6 import androidx.navigation.compose.NavHost
7 import com.stslex93.notes.core.navigation.model.AppDestination
8 import com.stslex93.notes.feature.edit.ui.init.editGraph
9 import com.stslex93.notes.feature.home.ui.init.homeGraph
10
11 @Composable
12 fun NavigationHost(
13 navHostController: NavHostController,
14 modifier: Modifier = Modifier,
15 startDestination: AppDestination = AppDestination.HOME
16 ) {
17 NavHost(
18 navController = navHostController,
19 startDestination = startDestination.route
20 ) {
21 homeGraph(modifier)
22 editGraph(modifier)
23 }
24 }