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.
- Alphabetic
- By Inheritance
- ValueDiffer
- Differ
- ConfigureMethods
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final type R = ValueResult
- Definition Classes
- ValueDiffer → Differ
Abstract Value Members
- abstract def configureIgnored(newIgnored: Boolean): ValueDiffer[T]
- Definition Classes
- ValueDiffer → Differ
- abstract def configurePairBy(path: ConfigurePath, op: PairBy[_]): Either[ConfigureError, ValueDiffer[T]]
- Definition Classes
- ValueDiffer → Differ
- abstract def configurePath(step: String, nextPath: ConfigurePath, op: ConfigureOp): Either[ConfigureError, ValueDiffer[T]]
- Definition Classes
- ValueDiffer → Differ
- abstract def diff(inputs: DiffInput[T]): R
- Definition Classes
- ValueDiffer → Differ
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- macro def configure[U](path: (T) => U)(configFunc: (Differ[U]) => Differ[U]): Differ[T]
- Definition Classes
- ConfigureMethods
- 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
- final def contramap[S](transformFunc: (S) => T): TransformedDiffer[S, T]
- final def diff(obtained: T, expected: T): R
- Definition Classes
- Differ
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def ignore: Differ[T]
- Definition Classes
- Differ
- macro def ignoreAt[U](path: (T) => U): Differ[T]
- Definition Classes
- ConfigureMethods
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- macro def replace[U](path: (T) => U)(newDiffer: Differ[U]): Differ[T]
- Definition Classes
- ConfigureMethods
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unignore: Differ[T]
- Definition Classes
- Differ
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated