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

Class Class, % Method, % Branch, % Line, % Instruction, %
OpaqueMetadataByteEnvelope 100% (1/1) 33.3% (1/3) 0% (0/8) 25% (3/12) 22.2% (12/54)


 package com.ghost.serialization.integration.model
 
 import com.ghost.serialization.annotations.GhostName
 import com.ghost.serialization.annotations.GhostSerialization
 import com.ghost.serialization.types.RawJson
 
 /** Large opaque metadata payload for capture benchmarks. */
 @GhostSerialization
 data class OpaqueMetadataEnvelope(
     val id: String,
     @GhostName("metadata") val metadata: RawJson
 )
 
 /** ByteArray control model for capture benchmarks. */
 @GhostSerialization
 data class OpaqueMetadataByteEnvelope(
     val id: String,
     @GhostName("metadata") val metadata: ByteArray,
 ) {
     override fun equals(other: Any?): Boolean {
         if (this === other) {
             return true
         }
         if (other == null || this::class != other::class) {
             return false
         }
         other as OpaqueMetadataByteEnvelope
         return id == other.id && metadata.contentEquals(other.metadata)
     }
 
     override fun hashCode(): Int {
         var result = id.hashCode()
         result = 31 * result + metadata.contentHashCode()
         return result
     }
 }