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()
View Source
addition() :: {:added, term()}
addition() :: {:added, term()}
Link to this type
change()
View Source
change()
View Source
change() :: {:changed, changes()}
change() :: {:changed, changes()}
Link to this type
changes()
View Source
changes()
View Source
changes() ::
addition()
| removal()
| change()
| list_addition()
| list_removal()
| list_change()
| no_change()
| primitive_change()
| %{any: changes()}
| [changes()]
changes() :: addition() | removal() | change() | list_addition() | list_removal() | list_change() | no_change() | primitive_change() | %{any: changes()} | [changes()]
Link to this type
list_addition() View Source
Link to this type
list_change() View Source
Link to this type
list_removal() View Source
Link to this type
no_change()
View Source
no_change()
View Source
no_change() :: :not_changed
no_change() :: :not_changed
Link to this type
primitive_change() View Source
Link to this type
removal()
View Source
removal()
View Source
removal() :: {:removed, term()}
removal() :: {:removed, term()}
Link to this section Functions
Link to this function
diff(a, b) View Source
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
Reverts a patch so that it can undo a change