All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.scalanative.testinterface.common.FrameworkInfo.scala Maven / Gradle / Ivy

package scala.scalanative.testinterface.common

// Ported from Scala.js

import sbt.testing._

private[testinterface] final class FrameworkInfo(
    val implName: String,
    val displayName: String,
    val fingerprints: List[Fingerprint]
)

private[testinterface] object FrameworkInfo {
  implicit object FrameworkInfoSerializer extends Serializer[FrameworkInfo] {
    def serialize(x: FrameworkInfo, out: Serializer.SerializeState): Unit = {
      out.write(x.implName)
      out.write(x.displayName)
      out.write(x.fingerprints)
    }

    def deserialize(in: Serializer.DeserializeState): FrameworkInfo = {
      new FrameworkInfo(
        in.read[String](),
        in.read[String](),
        in.read[List[Fingerprint]]()
      )
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy