MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / appendDiffs

Function appendDiffs

internal/node/node.go:371–376  ·  view source on GitHub ↗
(diffs []string, node1, node2 *yaml.Node)

Source from the content-addressed store, hash-verified

369}
370
371func appendDiffs(diffs []string, node1, node2 *yaml.Node) []string {
372 if reflect.DeepEqual(node1, node2) {
373 return diffs
374 }
375 return append(diffs, Diff(node1, node2)...)
376}
377
378// MakeMapping returns a pointer to a new yaml mapping node
379func MakeMapping() *yaml.Node {

Callers 2

appendMappingDiffsFunction · 0.85
appendSequenceDiffsFunction · 0.85

Calls 1

DiffFunction · 0.70

Tested by

no test coverage detected