Packages

trait ValueDiffer[T] extends Differ[T]

Differ where the error diagnostic output is just string values. Simple types where a string representation is enough for diagnostics purposes should use Differ.useEquals (EqualsDiffer is a subtype of this trait). For example, Differ for Int, String, java.time.Instant are all ValueDiffers.

This trait also provide an extra contramap method which makes it easy to write instances for newtypes / opaque types.

Linear Supertypes
Differ[T], ConfigureMethods[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValueDiffer
  2. Differ
  3. ConfigureMethods
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final type R = ValueResult
    Definition Classes
    ValueDifferDiffer

Abstract Value Members

  1. abstract def configureIgnored(newIgnored: Boolean): ValueDiffer[T]
    Definition Classes
    ValueDifferDiffer
  2. abstract def configurePairBy(path: ConfigurePath, op: PairBy[_]): Either[ConfigureError, ValueDiffer[T]]
    Definition Classes
    ValueDifferDiffer
  3. abstract def configurePath(step: String, nextPath: ConfigurePath, op: ConfigureOp): Either[ConfigureError, ValueDiffer[T]]
    Definition Classes
    ValueDifferDiffer
  4. abstract def diff(inputs: DiffInput[T]): R
    Definition Classes
    ValueDifferDiffer

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. macro def configure[U](path: (T) => U)(configFunc: (Differ[U]) => Differ[U]): Differ[T]
    Definition Classes
    ConfigureMethods
  7. final def configureRaw(path: ConfigurePath, operation: ConfigureOp): Either[ConfigureError, Differ[T]]

    Attempt to change the configuration of this Differ.

    Attempt to change the configuration of this Differ. If successful, a new differ with the updated configuration will be returned.

    The configuration change can fail due to - bad "path" that does not match the internal structure of the Differ - The path resolved correctly, but the configuration update operation cannot be applied for that part of the Differ (e.g. wrong type or wrong operation)

    path

    The path to traverse to the sub-Differ

    operation

    The configuration change operation you want to perform on the target sub-Differ

    Definition Classes
    Differ
  8. final def contramap[S](transformFunc: (S) => T): TransformedDiffer[S, T]
  9. final def diff(obtained: T, expected: T): R
    Definition Classes
    Differ
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def ignore: Differ[T]
    Definition Classes
    Differ
  15. macro def ignoreAt[U](path: (T) => U): Differ[T]
    Definition Classes
    ConfigureMethods
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. macro def replace[U](path: (T) => U)(newDiffer: Differ[U]): Differ[T]
    Definition Classes
    ConfigureMethods
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def unignore: Differ[T]
    Definition Classes
    Differ
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Differ[T]

Inherited from ConfigureMethods[T]

Inherited from AnyRef

Inherited from Any

Ungrouped