ex_audit v0.6.0 ExAudit.Diff View Source

Link to this section Summary

Functions

Creates a patch that can be used to go from a to b with the ExAudit.Patch.patch function

Reverts a patch so that it can undo a change

Link to this section Types

Link to this type

addition() View Source
addition() :: {:added, term()}

Link to this type

change() View Source
change() :: {:changed, changes()}

Link to this type

list_addition() View Source
list_addition() :: {:added_to_list, index :: integer(), term()}

Link to this type

list_change() View Source
list_change() :: {:changed_in_list, index :: integer(), changes()}

Link to this type

list_removal() View Source
list_removal() :: {:removed_from_list, index :: integer(), term()}

Link to this type

no_change() View Source
no_change() :: :not_changed

Link to this type

primitive_change() View Source
primitive_change() :: {:primitive_change, removed :: term(), added :: term()}

Link to this type

removal() View Source
removal() :: {:removed, term()}

Link to this section Functions

Creates a patch that can be used to go from a to b with the ExAudit.Patch.patch function

Link to this function

reverse(changes) View Source
reverse(changes()) :: changes()

Reverts a patch so that it can undo a change