ResponseSnapshot.Changes (Response Snapshot v1.0.1) View Source

Structure for changes of a diff. An object which is completely identical will be equal to Changes.empty(). Any modifications, additions, and removals are accessible from this struct.

Object traversal is notated with a .. Array traversal is notated with an _. For example, the follow would indicate that key "a" (list), index 1 was added: additions: ["a_1"].

Link to this section Summary

Functions

Defines the Changes struct

Link to this section Functions

Link to this function

%ResponseSnapshot.Changes{}

View Source (struct)

Defines the Changes struct:

  • additions - Paths that were added versus what is stored in the fixture
  • removals - Paths that were removed versus what is stored in the fixture
  • modified - Paths that were modified versus what is stored in the fixture
  • mode - Internal function helper, should always be nil