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

Class Method, % Branch, % Line, % Instruction, %
Retry 0% (0/2) 0% (0/2) 0% (0/23)
Retry$Companion 0% (0/1) 0% (0/1) 0% (0/1)
Total 0% (0/3) 0% (0/3) 0% (0/24)


 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)