MCPcopy Index your code
hub / github.com/RustPython/RustPython / merge

Method merge

Lib/doctest.py:1670–1678  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1668 # Backward compatibility cruft to maintain doctest.master.
1669 #/////////////////////////////////////////////////////////////////
1670 def merge(self, other):
1671 d = self._stats
1672 for name, (failures, tries, skips) in other._stats.items():
1673 if name in d:
1674 failures2, tries2, skips2 = d[name]
1675 failures = failures + failures2
1676 tries = tries + tries2
1677 skips = skips + skips2
1678 d[name] = (failures, tries, skips)
1679
1680
1681def _n_items(items: list | dict) -> str:

Callers 2

testmodFunction · 0.45
testfileFunction · 0.45

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected