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

Function test_copy

tests/test_coverage_sortedset.py:265–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263 assert len(temp) == 0
264
265def test_copy():
266 temp = SortedSet(range(100))
267 temp._reset(7)
268 that = temp.copy()
269 that.add(1000)
270 assert len(temp) == 100
271 assert len(that) == 101
272
273def test_copy_copy():
274 import copy

Callers

nothing calls this directly

Calls 4

copyMethod · 0.95
SortedSetClass · 0.90
_resetMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected