View Source Machete.Mismatch (Machete v0.3.1)

Data and functions to deal with representing mismatches

Summary

Types

t()

Describes the details of a mismatch

Functions

Pretty prints the specified list of mismatches, in a manner suitable for presentation to the user

Constructs an instance of Matchable.Mismatch with the given message and path, wrapped in a list and suitable for return from a Machete.Matchable.mismatches/2 call

Types

@type t() :: %Machete.Mismatch{message: String.t(), path: [term()]}

Describes the details of a mismatch

Functions

Link to this function

format_mismatches(mismatches, indent \\ "")

View Source

Pretty prints the specified list of mismatches, in a manner suitable for presentation to the user

Link to this function

mismatch(message, path \\ nil)

View Source

Constructs an instance of Matchable.Mismatch with the given message and path, wrapped in a list and suitable for return from a Machete.Matchable.mismatches/2 call