print report for default output: diff
(r *Report, to io.Writer)
| 165 | |
| 166 | // print report for default output: diff |
| 167 | func printDiffReport(r *Report, to io.Writer) { |
| 168 | for _, entry := range r.Entries { |
| 169 | _, _ = fmt.Fprintf( |
| 170 | to, |
| 171 | ansi.Color("%s %s", r.format.changestyles[entry.ChangeType].color)+"\n", |
| 172 | entry.Key, |
| 173 | r.format.changestyles[entry.ChangeType].message, |
| 174 | ) |
| 175 | printDiffRecords(entry.SuppressedKinds, entry.Kind, entry.Context, entry.Diffs, to) |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | // setup report for simple output. |
| 180 | func setupSimpleReport(r *Report) { |
nothing calls this directly
no test coverage detected