MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / _check

Method _check

sortedcontainers/sorteddict.py:607–616  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

605
606
607 def _check(self):
608 """Check invariants of sorted dict.
609
610 Runtime complexity: `O(n)`
611
612 """
613 _list = self._list
614 _list._check()
615 assert len(self) == len(_list)
616 assert all(key in self for key in _list)
617
618
619def _view_delitem(self, index):

Callers 8

test_initFunction · 0.95
test_stressFunction · 0.95
test_initFunction · 0.95
test_init_keyFunction · 0.95
test_init_argsFunction · 0.95
test_init_kwargsFunction · 0.95
test_delitemFunction · 0.95
test_setitemFunction · 0.95

Calls

no outgoing calls

Tested by 8

test_initFunction · 0.76
test_stressFunction · 0.76
test_initFunction · 0.76
test_init_keyFunction · 0.76
test_init_argsFunction · 0.76
test_init_kwargsFunction · 0.76
test_delitemFunction · 0.76
test_setitemFunction · 0.76