(filename string, lineIndices []int)
| 145 | } |
| 146 | |
| 147 | func (p *PatchBuilder) AddFileLineRange(filename string, lineIndices []int) error { |
| 148 | info, err := p.getFileInfo(filename) |
| 149 | if err != nil { |
| 150 | return err |
| 151 | } |
| 152 | info.mode = PART |
| 153 | info.includedLineIndices = lo.Union(info.includedLineIndices, lineIndices) |
| 154 | |
| 155 | return nil |
| 156 | } |
| 157 | |
| 158 | func (p *PatchBuilder) RemoveFileLineRange(filename string, lineIndices []int) error { |
| 159 | info, err := p.getFileInfo(filename) |
nothing calls this directly
no test coverage detected