Coverage Summary for Class: AsyncState (com.georgeci.moneysurfer.utils)
| Class | Method, % | Branch, % | Line, % | Instruction, % |
|---|---|---|---|---|
| AsyncState$Content | 100% (1/1) | 100% (2/2) | 100% (12/12) | |
| AsyncState$Loading | 100% (1/1) | 100% (1/1) | 100% (2/2) | |
| Total | 100% (2/2) | 100% (3/3) | 100% (14/14) |
package com.georgeci.moneysurfer.utils
sealed interface AsyncState<out C : Any> {
data object Loading : AsyncState<Nothing>
data class Content<C : Any>(
val value: C,
val pending: Boolean = false,
) : AsyncState<C>
}