Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNewSnapshotPaths ¶
Returns all the `.snap.new` snapshots in the current directory and its sub-directories.
Types ¶
type Snapshot ¶
type Snapshot struct { Loc int Name string Source string Content string // contains filtered or unexported fields }
func Read ¶
Parses a snapshot file into the `Snapshot` struct. Returns an error if `snapshotPath` doesn't exist.
func (Snapshot) Diff ¶
Compute the difference between the new snapshot (.snap.new) and the old snapshot (.snap). Return the diff string.
func (Snapshot) HasDifference ¶
type Summary ¶
func (*Summary) AddAccepted ¶
func (*Summary) AddRejected ¶
func (*Summary) AddSkipped ¶
Click to show internal directories.
Click to hide internal directories.