Home | History | Annotate | Download | only in python2.7

Lines Matching full:counts

33   trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs
93 and write the counts to <module>.cover for each
101 -r, --report Generate a report from a counts file; do not execute
107 -f, --file=<file> File to accumulate counts over several runs.
222 def __init__(self, counts=None, calledfuncs=None, infile=None,
224 self.counts = counts
225 if self.counts is None:
226 self.counts = {}
227 self.counter = self.counts.copy() # map (filename, lineno) to count
239 # Try to merge existing counts file.
241 counts, calledfuncs, callers = \
243 self.update(self.__class__(counts, calledfuncs, callers))
245 print >> sys.stderr, ("Skipping counts file %r: %s"
250 counts = self.counts
253 other_counts = other.counts
258 counts[key] = counts.get(key, 0) + other_counts[key]
296 # turn the counts data ("(filename, lineno) = count") into something
299 for filename, lineno in self.counts.keys():
301 lines_hit[lineno] = self.counts[(filename, lineno)]
350 # try and store counts and module info into self.outfile
352 pickle.dump((self.counts, self.calledfuncs, self.callers),
355 print >> sys.stderr, "Can't save counts files because %s" % err
466 @param infile file from which to read stored counts to be
474 self.counts = {} # keys are (filename, linenumber)
619 self.counts[key] = self.counts.get(key, 0) + 1
646 self.counts[key] = self.counts.get(key, 0) + 1
650 return CoverageResults(self.counts, infile=self.infile,