Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
265
def
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
273
def
test_copy_copy():
274
import
copy
Callers
nothing calls this directly
Calls
4
copy
Method · 0.95
SortedSet
Class · 0.90
_reset
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected