ValueDiffer
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.
Attributes
- Graph
-
- Supertypes
- Known subtypes
Members list
Type members
Types
Value members
Abstract methods
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Concrete methods
Inherited methods
Attributes
- Inherited from:
- ConfigureMethods
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
Attributes
- Inherited from:
- Differ
Attributes
- Inherited from:
- ConfigureMethods
Attributes
- Inherited from:
- ConfigureMethods
Inherited fields
Attributes
- Inherited from:
- ConfigureMethods