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

Class Class, % Method, % Branch, % Line, % Instruction, %
OpaqueMetadataEnvelope 100% (1/1) 100% (1/1) 100% (3/3) 100% (12/12)


 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
     }
 }