DiffInstances

zio.test.diff.DiffInstances
trait DiffInstances extends LowPriDiff

Attributes

Graph
Supertypes
trait LowPriDiff
class Object
trait Matchable
class Any
Known subtypes
object Diff.type

Members list

Value members

Concrete methods

def mkSeqDiff[F[_], A : Diff](name: String)(f: F[A] => Seq[A]): Diff[F[A]]

Inherited methods

def anyDiff[A]: Diff[A]

Attributes

Inherited from:
LowPriDiff

Implicits

Implicits

implicit def arrayBufferDiff[A : Diff]: Diff[ArrayBuffer[A]]
implicit def arrayDiff[A : Diff]: Diff[Array[A]]
implicit def chunkDiff[A : Diff]: Diff[Chunk[A]]
implicit def listBufferDiff[A : Diff]: Diff[ListBuffer[A]]
implicit def listDiff[A : Diff]: Diff[List[A]]
implicit def mapDiff[K, V : Diff]: Diff[Map[K, V]]
implicit def nonEmptyChunk[A : Diff]: Diff[NonEmptyChunk[A]]
implicit val nothingDiff: Diff[Nothing]
implicit def optionDiff[A : Diff]: Diff[Option[A]]
implicit def seqDiff[A : Diff]: Diff[Seq[A]]
implicit def setDiff[A : Diff]: Diff[Set[A]]
implicit val stringDiff: Diff[String]

The default String renderer attempts to clever render the resulting diff according to its inputs.

The default String renderer attempts to clever render the resulting diff according to its inputs.

  • Short strings are rendered as: "this" was not equal to "something else"
  • Single line strings are determined (based on word to length ratio) to be either structured word-based sentences or less structured dat.
    • Sentence-like strings are diffed per word
    • Unstructured strings are diffed per character
  • Multi-line strings are diffed per line

Attributes

implicit def vectorDiff[A : Diff]: Diff[Vector[A]]

Inherited implicits

implicit def anyValDiff[A <: AnyVal]: Diff[A]

Attributes

Inherited from:
LowPriDiff