Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func YAMLCmpWithIgnore ¶
YAMLCmpWithIgnore compares two yaml texts, and ignores paths in ignorePaths.
Types ¶
type YAMLCmpReporter ¶
type YAMLCmpReporter struct {
// contains filtered or unexported fields
}
YAMLCmpReporter is a custom reporter to generate tree based diff for YAMLs, used by cmp.Equal().
func (*YAMLCmpReporter) PopStep ¶
func (r *YAMLCmpReporter) PopStep()
PopStep implements interface to keep track of current path by popping a step out. of YAMLCmpReporter.path
func (*YAMLCmpReporter) PushStep ¶
func (r *YAMLCmpReporter) PushStep(ps cmp.PathStep)
PushStep implements interface to keep track of current path by pushing. a step into YAMLCmpReporter.path
func (*YAMLCmpReporter) Report ¶
func (r *YAMLCmpReporter) Report(rs cmp.Result)
Report implements interface to add diff path into YAMLCmpReporter.diffTree.
func (*YAMLCmpReporter) String ¶
func (r *YAMLCmpReporter) String() string
String returns a text representation of diff tree.
Click to show internal directories.
Click to hide internal directories.