org.specs2.matcher.describe

Members list

Type members

Classlikes

class ArrayDiffable[E](using di: Diffable[E]) extends Diffable[Array[E]]

Attributes

Supertypes
trait Diffable[Array[E]]
class Object
trait Matchable
class Any
case class ArrayDifference(results: Seq[ComparisonResult], added: Seq[Any], removed: Seq[Any]) extends OrderedCollectionDifferent[Any], ArrayTypeProvider

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ArrayIdentical(value: Seq[Any]) extends OrderedCollectionIdentical, ArrayTypeProvider

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Render the result of a comparison for different types: primitives, throwables, collections,...

Render the result of a comparison for different types: primitives, throwables, collections,...

The comparison may turn out to render identical values or differences

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait Diffable[T]

Typeclass for values which can be compared and return a comparison result

Typeclass for values which can be compared and return a comparison result

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ArrayDiffable[E]
class EitherDiffable[L, R, T]
class FallbackDiffable[T]
object largeStringDiffable.type
class MapDiffable[K, V, M]
object NothingDiffable.type
class OptionDiffable[T, S]
class ProductDiffable[T]
class SeqDiffable[E, S]
class SeqLinesDiffable[E, S]
class SetDiffable[E, S]
class TryDiffable[T, S]
Show all

Note: variance is not managed by having a Diffable typeclass with a contravariant parameter Diffable[-T] In that the implicit for case classes (see product) can not be found.

Note: variance is not managed by having a Diffable typeclass with a contravariant parameter Diffable[-T] In that the implicit for case classes (see product) can not be found.

Instead we deal with variance at the level of each implicit.

For example given exceptionDiffable[T <: Throwable]: Diffable[T] = new ThrowableDiffable[T] will be found for any custom exception extending Throwable. Similarly we can get a diff for RightString, Int and RightString, Int with given eitherDiffable[L: Diffable, R: Diffable, T <: Either[L, R]] because we unify both Rights with Either[String, Int]

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
Diffable.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Diffable.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Diffable.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Diffables

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Diffables.type
object Diffables extends Diffables

Attributes

Companion
trait
Supertypes
trait Diffables
class Object
trait Matchable
class Any
Self type
Diffables.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class EitherDiffable[L, R, T <: Either[L, R]] extends Diffable[T]

Attributes

Supertypes
trait Diffable[T]
class Object
trait Matchable
class Any
case class EitherDifferent(changed: ComparisonResult, isRight: Boolean) extends DifferentComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class EitherIdentical(same: ComparisonResult, isRight: Boolean) extends IdenticalComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class EitherLeftDiffable[L](using ldi: Diffable[L]) extends Diffable[Left[L, Nothing]]

Attributes

Supertypes
trait Diffable[Left[L, Nothing]]
class Object
trait Matchable
class Any
class EitherRightDiffable[R](using rdi: Diffable[R]) extends Diffable[Right[Nothing, R]]

Attributes

Supertypes
trait Diffable[Right[Nothing, R]]
class Object
trait Matchable
class Any
case class EitherTypeDifferent(isActualRight: Boolean) extends DifferentComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class FailureDiffable(using di: Diffable[Throwable]) extends Diffable[Failure[Nothing]]

Attributes

Supertypes
trait Diffable[Failure[Nothing]]
class Object
trait Matchable
class Any
class FallbackDiffable[T] extends Diffable[T]

Attributes

Supertypes
trait Diffable[T]
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class LinesComparisonResult[T](actual: List[T], expected: List[T])(using evidence$1: Diffable[T]) extends ComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object LinesDiffable

Import the implicit Diffable contained in this object to get a colored output showing line differences in Strings containing lots of lines

Import the implicit Diffable contained in this object to get a colored output showing line differences in Strings containing lots of lines

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class MapDiffable[K, V, M <: Map[K, V]](using diff: Diffable[V]) extends Diffable[M]

Attributes

Supertypes
trait Diffable[M]
class Object
trait Matchable
class Any
case class MapDifference(same: Seq[(Any, Any)], changed: Seq[(Any, ComparisonResult)], added: Seq[(Any, Any)], removed: Seq[(Any, Any)]) extends UnorderedCollectionDifferent[(Any, Any), (Any, ComparisonResult)], MapTypeProvider

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MapIdentical(m: Map[_, _]) extends OrderedCollectionIdentical, MapTypeProvider

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NothingDiffable extends Diffable[Nothing]

Attributes

Supertypes
trait Diffable[Nothing]
class Object
trait Matchable
class Any
Self type
class OptionDiffable[T, S <: Option[T]](using evidence$3: Diffable[T], di: Diffable[T]) extends Diffable[S]

Attributes

Supertypes
trait Diffable[S]
class Object
trait Matchable
class Any

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class OptionIdentical(same: Option[ComparisonResult]) extends IdenticalComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class OptionNoneDiffable[T <: Option[Nothing]] extends Diffable[T]

Attributes

Supertypes
trait Diffable[T]
class Object
trait Matchable
class Any
case class OptionTypeDifferent(isActualSome: Boolean, isExpectedSome: Boolean) extends DifferentComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class OrderedCollectionDifferent[Element](results: Seq[ComparisonResult], added: Seq[Element], removed: Seq[Element]) extends DifferentComparisonResult

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class OrderedCollectionIdentical(value: Iterable[Any]) extends IdenticalComparisonResult

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class OtherDifferent(actual: Any, expected: Any) extends DifferentComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class OtherIdentical(actual: Any, expected: Any) extends IdenticalComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Diffable instances for various types

Diffable instances for various types

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class PrimitiveDifference(actual: Any, expected: Any) extends DifferentComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class PrimitiveIdentical(value: Any) extends IdenticalComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class ProductComparisonResult(typeName: String, results: List[(String, ComparisonResult)]) extends ComparisonResult

Attributes

Supertypes
class Object
trait Matchable
class Any
class ProductDiffable[T](typeName: String, product: ProductOf[T], diffables: => List[Diffable[_]]) extends Diffable[T]

Attributes

Supertypes
trait Diffable[T]
class Object
trait Matchable
class Any
class SeqDiffable[E, S <: Seq[E]](using di: Diffable[E]) extends Diffable[S]

This diffable displays elements missing or added from a Seq

This diffable displays elements missing or added from a Seq

Attributes

Supertypes
trait Diffable[S]
class Object
trait Matchable
class Any
case class SeqDifference(result: Seq[ComparisonResult], added: Seq[Any], removed: Seq[Any]) extends OrderedCollectionDifferent[Any], ListTypeProvider

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class SeqIdentical(value: Seq[Any]) extends OrderedCollectionIdentical, ListTypeProvider

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class SeqLinesDiffable[E, S <: Seq[E]](using di: Diffable[E]) extends Diffable[S]

This diffable uses the Lines diffables to show differences between 2 sequences as a unified sequence with inlined differences

This diffable uses the Lines diffables to show differences between 2 sequences as a unified sequence with inlined differences

Attributes

Supertypes
trait Diffable[S]
class Object
trait Matchable
class Any
class SetDiffable[E, S <: Set[E]] extends Diffable[S]

Attributes

Supertypes
trait Diffable[S]
class Object
trait Matchable
class Any
case class SetDifference(same: Seq[Any], added: Seq[Any], removed: Seq[Any]) extends UnorderedCollectionDifferent[Any, Any], SetTypeProvider

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class SetIdentical(value: Set[_]) extends OrderedCollectionIdentical, SetTypeProvider

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class StackElementDifferent(className: ComparisonResult, methodName: ComparisonResult, fileName: Option[ComparisonResult], lineNumber: ComparisonResult) extends DifferentComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class StackElementIdentical(value: StackTraceElement) extends IdenticalComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class StackTraceElementDiffable(using nameDiffable: Diffable[String], lineDiffable: Diffable[Int]) extends Diffable[StackTraceElement]

Attributes

Supertypes
trait Diffable[StackTraceElement]
class Object
trait Matchable
class Any
class ThrowableDiffable[T <: Throwable](using sdi: Diffable[String], adi: Diffable[List[StackTraceElement]]) extends Diffable[T]

Attributes

Supertypes
trait Diffable[T]
class Object
trait Matchable
class Any

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ThrowableIdentical(value: Throwable) extends IdenticalComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class TryDiffable[T, S <: Try[T]](using evidence$4: Diffable[T], tdi: Diffable[Throwable]) extends Diffable[S]

Attributes

Supertypes
trait Diffable[S]
class Object
trait Matchable
class Any
case class TryDifferent(value: ComparisonResult, isSuccess: Boolean) extends DifferentComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TryIdentical(same: Any, isSuccess: Boolean) extends IdenticalComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TryTypeDifferent(isActualSuccess: Boolean) extends DifferentComparisonResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class UnorderedCollectionDifferent[Element, Change](same: Seq[Element], changed: Seq[Change], added: Seq[Element], removed: Seq[Element]) extends DifferentComparisonResult

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes