Lines Matching refs:file
16 file = None
28 file = m.group('file_name')
29 elif m and file and m.group('func'):
30 funcs.append((file, int(m.group('func_lineno')),
32 elif m and file and m.group('line'):
33 lines[(file, int(m.group('line_lineno')))] += (
38 def func_from_lineno(file, lineno): argument
39 i = b.bisect(funcs, (file, lineno))
40 if i and funcs[i-1][0] == file:
47 for (file, line_lineno), line_hits in lines.items():
48 func = func_from_lineno(file, line_lineno)
51 hits, count = reduced_funcs[(file, func)]
52 reduced_funcs[(file, func)] = (hits + (line_hits > 0), count + 1)
55 for (file, func), (hits, count) in reduced_funcs.items():
63 results.append((file, func, hits, count))
143 file = result.pop('file', '')
147 merged_results[(file, func)] = result
152 for file, func, hits, count in results:
153 merged_results[(file, func)]['coverage_hits'] = hits
154 merged_results[(file, func)]['coverage_count'] = count
159 for (file, func), result in sorted(merged_results.items()):
160 w.writerow({'file': file, 'name': func, **result})
165 for file, func, hits, count in results:
166 entry = (file if by == 'file' else func)