Coverage Summary for Class: ErrorStatus (dev.suresh.http)

Class Method, % Branch, % Line, % Instruction, %
ErrorStatus 0% (0/2) 0% (0/10) 0% (0/2) 0% (0/91)
ErrorStatus$Companion 0% (0/1) 0% (0/1) 0% (0/2)
Total 0% (0/3) 0% (0/10) 0% (0/3) 0% (0/93)


 package dev.suresh.http
 
 import kotlin.time.Duration
 import kotlin.time.Duration.Companion.seconds
 import kotlinx.serialization.Serializable
 
 data class Timeout(val connection: Duration, val read: Duration, val write: Duration) {
   companion object {
     val DEFAULT = Timeout(connection = 5.seconds, read = 5.seconds, write = 5.seconds)
   }
 }
 
 data class Retry(val attempts: Int, val maxDelay: Duration) {
   companion object {
     val DEFAULT = Retry(attempts = 2, maxDelay = 2.seconds)
   }
 }
 
 @Serializable
 data class ErrorStatus(val code: Int, val message: String, val details: String? = null)