PrettyProduct
org.specs2.scalacheck.PrettyProduct$
object PrettyProduct
This object can be used to create Pretty instances for case class Where string attributes are being quoted for easier copy/pasting from the console when it is needed to replay a failing example. Usage:
case class MyInt(i: Int, s: String = "hey")
object MyInt { given Arbitrary[MyInt] = Arbitrary(Gen.const(MyInt(1))) given MyInt => Pretty = PrettyProduct[MyInt] }
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- PrettyProduct.type