Coverage Summary for Class: ApiUserEvent (com.ghost.serialization.integration.model)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| ApiUserEvent |
50%
(1/2)
|
0%
(0/22)
|
83.3%
(5/6)
|
24%
(36/150)
|
| ApiUserEvent$Companion |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/2)
|
| Total |
33.3%
(1/3)
|
0%
(0/22)
|
71.4%
(5/7)
|
23.7%
(36/152)
|
package com.ghost.serialization.integration.model
import com.ghost.serialization.annotations.GhostSerialization
import com.squareup.moshi.JsonClass
import kotlinx.serialization.Serializable
/**
* Realistic model with 2 required + 3 default-valued properties.
* Exercises the N=3 multi-branch path (8 constructor branches, 0 .copy() calls).
* This is the maximum threshold for the multi-branch optimization.
*/
@Serializable
@JsonClass(generateAdapter = true)
@GhostSerialization
data class ApiUserEvent(
val userId: Int,
val eventType: String,
val version: Int = 1,
val retryCount: Int = 0,
val isProcessed: Boolean = false
)