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

Function test_rtrn_unique_ptr_cref

tests/test_class_sh_basic.py:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158
159def test_rtrn_unique_ptr_cref():
160 obj0 = m.rtrn_unique_ptr_cref("")
161 assert m.get_mtxt(obj0) == "static_ctor_arg"
162 obj1 = m.rtrn_unique_ptr_cref("passed_mtxt_1")
163 assert m.get_mtxt(obj1) == "passed_mtxt_1"
164 assert m.get_mtxt(obj0) == "passed_mtxt_1"
165 assert obj0 is obj1
166
167
168def test_unique_ptr_cref_roundtrip():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected