Versions in this module Expand all Collapse all v1 v1.1.0 May 6, 2024 v1.0.1 May 6, 2024 v1.0.0 May 6, 2024 Changes in this version + func GetNewSnapshotPaths() ([]string, error) + type Snapshot struct + Content string + Loc int + Name string + Source string + func AcceptAll(paths []string) ([]Snapshot, error) + func Read(snapshotPath string) (Snapshot, error) + func RejectAll(paths []string) ([]Snapshot, error) + func Write(path, snapshotName, content, source string, loc int) (Snapshot, error) + func (s Snapshot) Accept() error + func (s Snapshot) CleanPath() string + func (s Snapshot) Diff() string + func (s Snapshot) HasDifference() bool + func (s Snapshot) IsNew() bool + func (s Snapshot) Reject() + type Summary struct + Accepted []Snapshot + Rejected []Snapshot + Skipped []Snapshot + func (s *Summary) AddAccepted(snapshot Snapshot) + func (s *Summary) AddRejected(snapshot Snapshot) + func (s *Summary) AddSkipped(snapshot Snapshot)