(lines []string, fromPath, toPath string, isBinary bool)
| 163 | } |
| 164 | |
| 165 | func (e *UnifiedEncoder) appendPathLines(lines []string, fromPath, toPath string, isBinary bool) []string { |
| 166 | if isBinary { |
| 167 | return append(lines, |
| 168 | fmt.Sprintf("Binary files %s and %s differ", fromPath, toPath), |
| 169 | ) |
| 170 | } |
| 171 | return append(lines, |
| 172 | fmt.Sprintf("--- %s", fromPath), |
| 173 | fmt.Sprintf("+++ %s", toPath), |
| 174 | ) |
| 175 | } |
| 176 | |
| 177 | type hunksGenerator struct { |
| 178 | fromLine, toLine int |
no outgoing calls
no test coverage detected