MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / update

Method update

tools/python-3.11.9-amd64/Lib/trace.py:187–203  ·  view source on GitHub ↗

Merge in the data from another CoverageResults

(self, other)

Source from the content-addressed store, hash-verified

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

Callers 2

__init__Method · 0.95
_find_linesFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected