(self, other)
Merge in the data from another CoverageResults
Merge in the data from another CoverageResults
Merge in the data from another CoverageResults
def update(self, other):
        """Merge in the data from another CoverageResults"""
        counts = self.counts
        calledfuncs = self.calledfuncs
        callers = self.callers
        other_counts = other.counts
        other_calledfuncs = other.calledfuncs
        other_callers = other.callers

        for key in other_counts:
            counts[key] = counts.get(key, 0) + other_counts[key]

        for key in other_calledfuncs:
            calledfuncs[key] = 1

        for key in other_callers:
            callers[key] = 1
def update ( self , other ) : counts = self . counts calledfuncs = self . calledfuncs callers = self . callers other_counts = other . counts other_calledfuncs = other . calledfuncs other_callers = other . callers for key in other_counts : counts [ key ] = counts . get ( key , 0 ) + other_counts [ key ] for key in other_calledfuncs : calledfuncs [ key ] = 1 for key in other_callers : callers [ key ] = 1