(sections []*diffLineSection, lineType diffLineType)
| 81 | } |
| 82 | |
| 83 | func newSectionedDiffLineData(sections []*diffLineSection, lineType diffLineType) *diffLineData { |
| 84 | diffLine := &diffLineData{ |
| 85 | sections: sections, |
| 86 | lineType: lineType, |
| 87 | } |
| 88 | |
| 89 | var buf bytes.Buffer |
| 90 | for _, section := range sections { |
| 91 | buf.WriteString(section.text) |
| 92 | } |
| 93 | diffLine.line = buf.String() |
| 94 | |
| 95 | return diffLine |
| 96 | } |
| 97 | |
| 98 | type diffLines struct { |
| 99 | rawLines []*diffLineData |
no test coverage detected