Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ test_vectors_resize
Function
test_vectors_resize
tools/python/test/test_vector.py:132–137 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
130
131
132
def
test_vectors_resize():
133
vs = vectors()
134
vs.resize(100)
135
assert len(vs) == 100
136
for
i in range(100):
137
assert len(vs[i]) == 0
138
139
140
def
test_vectors_extend():
Callers
nothing calls this directly
Calls
3
len
Function · 0.85
range
Function · 0.50
resize
Method · 0.45
Tested by
no test coverage detected