(r io.Reader)
| 36 | } |
| 37 | |
| 38 | func (mrlb *MultiReaderLineBuffer) ReadAll(r io.Reader) { |
| 39 | scanner := bufio.NewScanner(r) |
| 40 | for scanner.Scan() { |
| 41 | line := scanner.Text() |
| 42 | mrlb.addLine(line) |
| 43 | mrlb.callLineCallback(line) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | func (mrlb *MultiReaderLineBuffer) callLineCallback(line string) { |
| 48 | mrlb.lock.Lock() |
nothing calls this directly
no test coverage detected