Snapshots

object Snapshots extends Snapshots

Companion object that facilitates the importing of Snapshots members as an alternative to mixing it in. One use case is to import Snapshots members so you can use them in the Scala interpreter:

$scala -classpath scalatest.jar
Welcome to Scala 2.13.6 (OpenJDK 64-Bit Server VM, Java yyy).
Type in expressions for evaluation. Or try :help.
 
scala> import org.scalactic.Snapshots._
import org.scalatest.Snapshots._
 
scala> val a = 8
a: Int = 8
 
scala> snap(a)
res0: scala.collection.immutable.Vector[org.scalactic.Snapshot] = Vector(a = 8)
Companion:
class
Source:
Snapshots.scala
trait Snapshots
class Object
trait Matchable
class Any

Value members

Inherited methods

inline def snap(expressions: Any*): SnapshotSeq

Snap the given expressions.

Snap the given expressions.

Value parameters:
expressions

expressions to be snapped

Returns:

an IndexedSeq of Snapshot for the given expressions.

Inherited from:
Snapshots
Source:
Snapshots.scala