Lines Matching full:linenum
63 linenum := 1
66 fmt.Printf("chunk %d at line %d: %s\n", i, linenum, chunk)
69 src := strings.Repeat("\n", linenum-1) + chunk
76 for j := 0; j < len(lines); j, linenum = j+1, linenum+1 {
85 report.Errorf("\n%s:%d: not a quoted regexp: %s", filename, linenum, rest)
90 report.Errorf("\n%s:%d: %v", filename, linenum, err)
93 wantErrs[linenum] = rx
95 fmt.Printf("\t%d\t%s\n", linenum, rx)
98 linenum++
107 func (chunk *Chunk) GotError(linenum int, msg string) {
108 if rx, ok := chunk.wantErrs[linenum]; ok {
109 delete(chunk.wantErrs, linenum)
111 …chunk.report.Errorf("\n%s:%d: error %q does not match pattern %q", chunk.filename, linenum, msg, r…
114 chunk.report.Errorf("\n%s:%d: unexpected error: %v", chunk.filename, linenum, msg)
121 for linenum, rx := range chunk.wantErrs {
122 chunk.report.Errorf("\n%s:%d: expected error matching %q", chunk.filename, linenum, rx)