MCPcopy Index your code
hub / github.com/python/cpython / update

Method update

Lib/trace.py:185–201  ·  view source on GitHub ↗

Merge in the data from another CoverageResults

(self, other)

Source from the content-addressed store, hash-verified

183 return filename.startswith('<') and filename.endswith('>')
184
185 def update(self, other):
186 """Merge in the data from another CoverageResults"""
187 counts = self.counts
188 calledfuncs = self.calledfuncs
189 callers = self.callers
190 other_counts = other.counts
191 other_calledfuncs = other.calledfuncs
192 other_callers = other.callers
193
194 for key in other_counts:
195 counts[key] = counts.get(key, 0) + other_counts[key]
196
197 for key in other_calledfuncs:
198 calledfuncs[key] = 1
199
200 for key in other_callers:
201 callers[key] = 1
202
203 def write_results(self, show_missing=True, summary=False, coverdir=None, *,
204 ignore_missing_files=False):

Callers 2

__init__Method · 0.95
_find_linesFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected