Lines Matching refs:line
179 'file', 'function', 'line',
181 _by = ['file', 'function', 'line']
189 def __new__(cls, file='', function='', line=0,
191 return super().__new__(cls, file, function, int(Int(line)),
195 return CovResult(self.file, self.function, self.line,
235 for line in proc.stderr:
236 sys.stdout.write(line)
239 # collect line/branch coverage
270 # there are other hits on this line
278 for line in file['lines']:
279 func_name = line.get('function_name', '(inlined)')
286 # there are other hits on this line
288 file_name, func_name, line['line_number'],
289 0, line['count'],
291 Frac(1 if line['count'] > 0 else 0, 1),
294 for branch in line['branches']),
295 len(line['branches']))))
498 for line in lines:
500 widths[0], line[0],
502 for w, x in zip(widths[1:], line[1:-1])),
503 line[-1]))
516 # flatten to line info
517 results = fold(Result, results, by=['file', 'line'])
518 table = {r.line: r for r in results if r.file == path}
525 for line, r in sorted(table.items()):
528 if last is not None and line - last.stop <= args['context']:
531 line+1+args['context'])
536 line-args['context'],
537 line+1+args['context'])
544 for i, line in enumerate(f):
559 # build line
560 if line.endswith('\n'):
561 line = line[:-1]
565 line = '%-*s // %s hits%s' % (
567 line,
574 line = '\x1b[1;31m%s\x1b[m' % line
576 line = '\x1b[35m%s\x1b[m' % line
578 print(line)