addEntry: stores diff changes.
(key string, suppressedKinds []string, kind string, context int, diffs []difflib.DiffRecord, changeType string, structured *StructuredEntry)
| 130 | |
| 131 | // addEntry: stores diff changes. |
| 132 | func (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. |
| 146 | func (r *Report) print(to io.Writer) { |
no outgoing calls
no test coverage detected