Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ test_create
Function
test_create
tests/test_vector_unique_ptr_member.py:9–11 ·
view source on GitHub ↗
(num_elems)
Source
from the content-addressed store, hash-verified
7
8
@pytest.mark.parametrize(
"num_elems"
, range(3))
9
def
test_create(num_elems):
10
vo = m.VectorOwner.Create(num_elems)
11
assert vo.data_size() == num_elems
12
13
14
def
test_cast():
Callers
nothing calls this directly
Calls
2
Create
Method · 0.80
data_size
Method · 0.80
Tested by
no test coverage detected