Lines Matching refs:counts
33 trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs
155 def __init__(self, counts=None, calledfuncs=None, infile=None,
157 self.counts = counts
158 if self.counts is None:
159 self.counts = {}
160 self.counter = self.counts.copy() # map (filename, lineno) to count
172 # Try to merge existing counts file.
175 counts, calledfuncs, callers = pickle.load(f)
176 self.update(self.__class__(counts, calledfuncs, callers=callers))
178 print(("Skipping counts file %r: %s"
189 counts = self.counts
192 other_counts = other.counts
197 counts[key] = counts.get(key, 0) + other_counts[key]
239 # turn the counts data ("(filename, lineno) = count") into something
242 for filename, lineno in self.counts:
244 lines_hit[lineno] = self.counts[(filename, lineno)]
289 # try and store counts and module info into self.outfile
292 pickle.dump((self.counts, self.calledfuncs, self.callers),
295 print("Can't save counts files because %s" % err, file=sys.stderr)
404 @param infile file from which to read stored counts to be
412 self.counts = {} # keys are (filename, linenumber)
558 self.counts[key] = self.counts.get(key, 0) + 1
585 self.counts[key] = self.counts.get(key, 0) + 1
589 return CoverageResults(self.counts, infile=self.infile,
605 'the counts to <module>.cover for each module executed, in '
622 help='Generate a report from a counts file; does not execute any '
631 help='File to accumulate counts over several runs')