(dst io.Writer, line Line, preimage [][]byte, i int64)
| 132 | } |
| 133 | |
| 134 | func applyTextLine(dst io.Writer, line Line, preimage [][]byte, i int64) (err error) { |
| 135 | if line.Old() && string(preimage[i]) != line.Line { |
| 136 | return &Conflict{"fragment line does not match src line"} |
| 137 | } |
| 138 | if line.New() { |
| 139 | _, err = io.WriteString(dst, line.Line) |
| 140 | } |
| 141 | return err |
| 142 | } |
| 143 | |
| 144 | // Close writes any data following the last applied fragment and prevents |
| 145 | // future calls to ApplyFragment. |
no test coverage detected