Coverage Summary for Class: AppArguments (com.stslex93.notes.core.navigation.model)

Class Method, % Branch, % Line, % Instruction, %
AppArguments 0% (0/2) 0% (0/4) 0% (0/16)
AppArguments$Companion
AppArguments$Empty 0% (0/3) 0% (0/3) 0% (0/11)
AppArguments$LabelEdit 0% (0/1) 0% (0/3) 0% (0/26)
AppArguments$NoteEdit 0% (0/1) 0% (0/4) 0% (0/34)
Total 0% (0/7) 0% (0/14) 0% (0/87)


 package com.stslex93.notes.core.navigation.model
 
 sealed class AppArguments {
 
     abstract val arguments: List<String>
 
     open val argumentsForRoute: String
         get() = arguments.joinToString(
             separator = ARGUMENTS_SEPARATOR,
             prefix = ARGUMENTS_SEPARATOR
         )
 
     data object Empty : AppArguments() {
         override val arguments = emptyList<String>()
         override val argumentsForRoute = ""
     }
 
     data class NoteEdit(
         val noteId: Int,
         val isEdit: Boolean,
     ) : AppArguments() {
         override val arguments = listOf(noteId.toString(), isEdit.toString())
     }
 
     data class LabelEdit(
         val noteIds: Set<Int>
     ) : AppArguments() {
         override val arguments = listOf(noteIds.joinToString(LIST_SEPARATOR))
     }
 
     companion object {
         private const val ARGUMENTS_SEPARATOR = "/"
         const val LIST_SEPARATOR = "="
     }
 }