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

Function test_function_signatures

tests/test_class_sh_basic.py:212–228  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

210
211
212def test_function_signatures(doc):
213 assert (
214 doc(m.args_shared_ptr)
215 == "args_shared_ptr(arg0: m.class_sh_basic.atyp) -> m.class_sh_basic.atyp"
216 )
217 assert (
218 doc(m.args_shared_ptr_const)
219 == "args_shared_ptr_const(arg0: m.class_sh_basic.atyp) -> m.class_sh_basic.atyp"
220 )
221 assert (
222 doc(m.args_unique_ptr)
223 == "args_unique_ptr(arg0: m.class_sh_basic.atyp) -> m.class_sh_basic.atyp"
224 )
225 assert (
226 doc(m.args_unique_ptr_const)
227 == "args_unique_ptr_const(arg0: m.class_sh_basic.atyp) -> m.class_sh_basic.atyp"
228 )
229
230
231def test_unique_ptr_return_value_policy_automatic_reference():

Callers

nothing calls this directly

Calls 1

docFunction · 0.70

Tested by

no test coverage detected