Coverage Summary for Class: SmartDevice (com.ghost.serialization.integration.model)

Class Method, % Branch, % Line, % Instruction, %
SmartDevice 100% (1/1) 100% (1/1) 100% (2/2)
SmartDevice$Light 100% (1/1) 100% (1/1) 100% (8/8)
SmartDevice$Thermostat 100% (1/1) 100% (1/1) 100% (8/8)
SmartDevice$UnknownDevice 100% (1/1) 100% (1/1) 100% (17/17)
Total 100% (4/4) 100% (4/4) 100% (35/35)


 package com.ghost.serialization.integration.model
 
 import com.ghost.serialization.annotations.GhostFallback
 import com.ghost.serialization.annotations.GhostSerialization
 
 @GhostSerialization
 sealed class SmartDevice {
     @GhostSerialization
     data class Light(val brightness: Int) : SmartDevice()
 
     @GhostSerialization
     data class Thermostat(val temperature: Double) : SmartDevice()
 
     @GhostFallback
     @GhostSerialization
     data class UnknownDevice(val rawData: String = "unknown") : SmartDevice()
 }