MapDiffer

class MapDiffer[M[_, _], K, V](isIgnored: Boolean, keyDiffer: ValueDiffer[K], valueDiffer: Differ[V], typeName: SomeTypeName, asMap: MapLike[M]) extends Differ[M[K, V]]
Companion:
object
trait Differ[M[K, V]]
trait ConfigureMethods[M[K, V]]
class Object
trait Matchable
class Any

Type members

Types

override type R = MapResult

Value members

Concrete methods

override def configureIgnored(newIgnored: Boolean): Differ[M[K, V]]
Definition Classes
override def configurePairBy(path: ConfigurePath, op: PairBy[_]): Either[ConfigureError, Differ[M[K, V]]]
Definition Classes
override def configurePath(step: String, nextPath: ConfigurePath, op: ConfigureOp): Either[ConfigureError, Differ[M[K, V]]]
Definition Classes
override def diff(inputs: DiffInput[M[K, V]]): R
Definition Classes

Inherited methods

inline def configure[U](inline path: M[K, V] => U)(configFunc: Differ[U] => Differ[U]): Differ[M[K, V]]
Inherited from:
ConfigureMethods
final def configureRaw(path: ConfigurePath, operation: ConfigureOp): Either[ConfigureError, Differ[M[K, V]]]

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 parameters:
operation

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

path

The path to traverse to the sub-Differ

Inherited from:
Differ
final def diff(obtained: M[K, V], expected: M[K, V]): R
Inherited from:
Differ
def ignore: Differ[M[K, V]]
Inherited from:
Differ
inline def ignoreAt[U](inline path: M[K, V] => U): Differ[M[K, V]]
Inherited from:
ConfigureMethods
inline def replace[U](inline path: M[K, V] => U)(newDiffer: Differ[U]): Differ[M[K, V]]
Inherited from:
ConfigureMethods
def unignore: Differ[M[K, V]]
Inherited from:
Differ

Inherited fields

val requiredShapeMsg: String
Inherited from:
ConfigureMethods