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

Function TEST_SUBMODULE

tests/test_vector_unique_ptr_member.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46py::object py_cast_VectorOwner_ptr(VectorOwner *ptr) { return py::cast(ptr); }
47
48TEST_SUBMODULE(vector_unique_ptr_member, m) {
49 py::class_<VectorOwner>(m, "VectorOwner")
50 .def_static("Create", &VectorOwner::Create)
51 .def("data_size", &VectorOwner::data_size);
52
53 m.def("py_cast_VectorOwner_ptr", py_cast_VectorOwner_ptr);
54}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected