View Source Machete.Mismatch (Machete v0.2.3)

Data and functions to deal with representing mismatches

Link to this section 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

Link to this section Types

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

Describes the details of a mismatch

Link to this section 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