MCPcopy Index your code
hub / github.com/databus23/helm-diff / addEntry

Method addEntry

diff/report.go:132–143  ·  view source on GitHub ↗

addEntry: stores diff changes.

(key string, suppressedKinds []string, kind string, context int, diffs []difflib.DiffRecord, changeType string, structured *StructuredEntry)

Source from the content-addressed store, hash-verified

130
131// addEntry: stores diff changes.
132func (r *Report) addEntry(key string, suppressedKinds []string, kind string, context int, diffs []difflib.DiffRecord, changeType string, structured *StructuredEntry) {
133 entry := ReportEntry{
134 key,
135 suppressedKinds,
136 kind,
137 context,
138 diffs,
139 changeType,
140 structured,
141 }
142 r.Entries = append(r.Entries, entry)
143}
144
145// print: prints entries added to the report.
146func (r *Report) print(to io.Writer) {

Callers 3

generateReportFunction · 0.95
doSuppressFunction · 0.95
doDiffFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected