difflicious.differ
Type members
Classlikes
Differ where the two values are compared by using the equals method. If the two values aren't equal, then we use the provided valueToString function to output the diagnostic output.
Differ where the two values are compared by using the equals method. If the two values aren't equal, then we use the provided valueToString function to output the diagnostic output.
- Companion:
- object
A differ for a record-like data structure such as tuple or case classes.
A differ for a record-like data structure such as tuple or case classes.
- Companion:
- object
A Differ that transforms any input of diff method and pass it to its underlying Differ. See ValueDiffer.contramap
A Differ that transforms any input of diff method and pass it to its underlying Differ. See ValueDiffer.contramap
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.
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.