MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_pass_unique_ptr_cref

Function test_pass_unique_ptr_cref

tests/test_class_sh_basic.py:152–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150
151
152def test_pass_unique_ptr_cref():
153 obj = m.atyp("ctor_arg")
154 assert re.match("ctor_arg(_MvCtor)*_MvCtor", m.get_mtxt(obj))
155 assert re.match("ctor_arg(_MvCtor)*_MvCtor", m.pass_unique_ptr_cref(obj))
156 assert re.match("ctor_arg(_MvCtor)*_MvCtor", m.get_mtxt(obj))
157
158
159def test_rtrn_unique_ptr_cref():

Callers

nothing calls this directly

Calls 1

atypMethod · 0.80

Tested by

no test coverage detected