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

Function TEST_SUBMODULE

tests/test_class_sh_unique_ptr_custom_deleter.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23TEST_SUBMODULE(class_sh_unique_ptr_custom_deleter, m) {
24 py::classh<Pet>(m, "Pet").def_readwrite("name", &Pet::name);
25
26 m.def("create", &Pet::New);
27}
28
29} // namespace class_sh_unique_ptr_custom_deleter
30} // namespace pybind11_tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected