Coverage Summary for Class: GhostKindEvent (com.ghost.serialization.integration.model)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| GhostKindEvent |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(2/2)
|
| GhostKindEvent$Created |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(13/13)
|
| GhostKindEvent$Deleted |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(8/8)
|
| GhostKindEvent$Updated |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(13/13)
|
| Total |
100%
(4/4)
|
|
100%
(4/4)
|
100%
(36/36)
|
package com.ghost.serialization.integration.model
import com.ghost.serialization.annotations.GhostSerialization
@GhostSerialization(discriminator = "kind")
sealed class GhostKindEvent {
@GhostSerialization
data class Created(val id: String, val name: String) : GhostKindEvent()
@GhostSerialization
data class Deleted(val id: String) : GhostKindEvent()
@GhostSerialization
data class Updated(val id: String, val changes: String) : GhostKindEvent()
}