MCPcopy 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))
9def test_create(num_elems):
10 vo = m.VectorOwner.Create(num_elems)
11 assert vo.data_size() == num_elems
12
13
14def test_cast():

Callers

nothing calls this directly

Calls 2

CreateMethod · 0.80
data_sizeMethod · 0.80

Tested by

no test coverage detected