Coverage Summary for Class: SseStatus (dev.skymansandy.wiretap.domain.model)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| SseStatus |
33.3%
(1/3)
|
0%
(0/8)
|
28.6%
(4/14)
|
54.3%
(38/70)
|
| SseStatus$WhenMappings |
|
| Total |
33.3%
(1/3)
|
0%
(0/8)
|
28.6%
(4/14)
|
54.3%
(38/70)
|
/*
* Copyright (c) 2026 skymansandy. All rights reserved.
*/
package dev.skymansandy.wiretap.domain.model
import androidx.compose.ui.graphics.Color
import dev.skymansandy.wiretap.ui.theme.WiretapColors
enum class SseStatus {
Connecting,
Open,
Closed,
Failed,
;
val bgColor: Color
get() = when (this) {
Connecting -> WiretapColors.StatusBlue
Open -> WiretapColors.StatusGreen
Closed -> WiretapColors.StatusGray
Failed -> WiretapColors.StatusRed
}
val label: String
get() = when (this) {
Connecting -> "Connecting"
Open -> "Open"
Closed -> "Closed"
Failed -> "Failed"
}
}