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

Function test_count

tests/test_coverage_sortedset.py:282–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280 assert len(that) == 101
281
282def test_count():
283 temp = SortedSet(range(100))
284 temp._reset(7)
285 assert all(temp.count(val) == 1 for val in range(100))
286 assert temp.count(100) == 0
287 assert temp.count(0) == 1
288 temp.add(0)
289 assert temp.count(0) == 1
290 temp._check()
291
292def test_sub():
293 temp = SortedSet(range(100))

Callers

nothing calls this directly

Calls 5

countMethod · 0.95
addMethod · 0.95
_checkMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45

Tested by

no test coverage detected