Differ

trait Differ[T] extends ConfigureMethods[T]
Companion
object
class Object
trait Matchable
class Any
class MapDiffer[M, K, V]
class RecordDiffer[T]
class SeqDiffer[F, A]
class SetDiffer[F, A]
trait ValueDiffer[T]
class EqualsDiffer[T]
class NumericDiffer[T]
class TransformedDiffer[T, U]

Type members

Types

type R <: DiffResult
Implicitly added by optionDiffer
type R <: DiffResult

Value members

Abstract methods

def diff(inputs: DiffInput[T]): R
Implicitly added by optionDiffer
def diff(inputs: DiffInput[T]): R

Concrete methods

final def configureRaw(path: ConfigurePath, operation: ConfigureOp): Either[ConfigureError, Differ[T]]
Implicitly added by optionDiffer

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

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)
Value Params
operation

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

path

The path to traverse to the sub-Differ

final def configureRaw(path: ConfigurePath, operation: ConfigureOp): Either[ConfigureError, Differ[T]]

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

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)
Value Params
operation

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

path

The path to traverse to the sub-Differ

final def diff(obtained: T, expected: T): R
Implicitly added by optionDiffer
final def diff(obtained: T, expected: T): R
def ignore: Differ[T]
Implicitly added by optionDiffer
def ignore: Differ[T]
def unignore: Differ[T]
Implicitly added by optionDiffer
def unignore: Differ[T]

Inherited methods

inline def configure[U](inline path: T => U)(configFunc: Differ[U] => Differ[U]): Differ[T]
Implicitly added by optionDiffer
Inherited from
ConfigureMethods
inline def configure[U](inline path: T => U)(configFunc: Differ[U] => Differ[U]): Differ[T]
Inherited from
ConfigureMethods
inline def ignoreAt[U](inline path: T => U): Differ[T]
Implicitly added by optionDiffer
Inherited from
ConfigureMethods
inline def ignoreAt[U](inline path: T => U): Differ[T]
Inherited from
ConfigureMethods
inline def replace[U](inline path: T => U)(newDiffer: Differ[U]): Differ[T]
Implicitly added by optionDiffer
Inherited from
ConfigureMethods
inline def replace[U](inline path: T => U)(newDiffer: Differ[U]): Differ[T]
Inherited from
ConfigureMethods

Inherited fields

val requiredShapeMsg: String
Implicitly added by optionDiffer
Inherited from
ConfigureMethods
val requiredShapeMsg: String
Inherited from
ConfigureMethods