
scalaprops.TestResult.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalaprops_native0.5_3 Show documentation
Show all versions of scalaprops_native0.5_3 Show documentation
property based testing library for Scala
The newest version!
package scalaprops
private[scalaprops] final case class TestResult(
name: String,
duration: Long,
maxSize: Int,
minSuccessful: Int
) {
def asSimpleString: String = s"$duration $name $maxSize $minSuccessful"
}
private[scalaprops] object TestResult {
def formatResults(results: collection.Seq[TestResult], count: Int): String = {
results
.sortBy(_.duration)(
implicitly[scala.Ordering[Long]].reverse
)
.iterator
.take(count)
.map(_.asSimpleString)
.mkString("\n")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy