Home | History | Annotate | Download | only in bufio

Lines Matching full:linenum

153 func genLine(buf *bytes.Buffer, lineNum, n int, addNewline bool) {
155 doCR := lineNum%5 == 0
160 c := 'a' + byte(lineNum+i)
180 lineNum := 0
183 genLine(tmp, lineNum, j, true)
190 lineNum++
196 for lineNum := 0; s.Scan(); lineNum++ {
197 genLine(tmp, lineNum, j, false)
205 t.Errorf("%d: bad line: %d %d\n%.100q\n%.100q\n", lineNum, len(s.Bytes()), len(line), s.Text(), line)
220 lineNum := 0
223 genLine(tmp, lineNum, j, true)
226 lineNum++
232 for lineNum := 0; s.Scan(); lineNum++ {
233 genLine(tmp, lineNum, j, false)
241 t.Errorf("%d: bad line: %d %d\n%.100q\n%.100q\n", lineNum, len(s.Bytes()), len(line), s.Bytes(), line)
255 for lineNum := 0; s.Scan(); lineNum++ {
256 line := lines[lineNum]
258 t.Errorf("%d: bad line: %d %d\n%.100q\n%.100q\n", lineNum, len(s.Bytes()), len(line), s.Bytes(), line)