MCPcopy Index your code
hub / github.com/grantjenks/python-sortedcontainers / _check

Method _check

sortedcontainers/sortedset.py:723–733  ·  view source on GitHub ↗

Check invariants of sorted set. Runtime complexity: `O(n)`

(self)

Source from the content-addressed store, hash-verified

721
722
723 def _check(self):
724 """Check invariants of sorted set.
725
726 Runtime complexity: `O(n)`
727
728 """
729 _set = self._set
730 _list = self._list
731 _list._check()
732 assert len(_set) == len(_list)
733 assert all(value in _set for value in _list)

Callers 12

test_initFunction · 0.95
test_stressFunction · 0.95
test_initFunction · 0.95
test_addFunction · 0.95
test_clearFunction · 0.95
test_countFunction · 0.95
test_discardFunction · 0.95
test_mulFunction · 0.45
init_sorted_listFunction · 0.45
test_mulFunction · 0.45
init_sorted_listFunction · 0.45
test_mulFunction · 0.45

Calls

no outgoing calls

Tested by 10

test_initFunction · 0.76
test_stressFunction · 0.76
test_initFunction · 0.76
test_addFunction · 0.76
test_clearFunction · 0.76
test_countFunction · 0.76
test_discardFunction · 0.76
test_mulFunction · 0.36
test_mulFunction · 0.36
test_mulFunction · 0.36