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

Function TEST_SUBMODULE

tests/test_cpp_conduit.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace test_cpp_conduit {
10
11TEST_SUBMODULE(cpp_conduit, m) {
12 m.attr("PYBIND11_PLATFORM_ABI_ID") = py::bytes(PYBIND11_PLATFORM_ABI_ID);
13 m.attr("cpp_type_info_capsule_Traveler")
14 = py::capsule(&typeid(Traveler), typeid(std::type_info).name());
15 m.attr("cpp_type_info_capsule_int") = py::capsule(&typeid(int), typeid(std::type_info).name());
16
17 wrap_traveler(m);
18 wrap_lonely_traveler(m);
19}
20
21} // namespace test_cpp_conduit
22} // namespace pybind11_tests

Callers

nothing calls this directly

Calls 6

bytesClass · 0.85
capsuleFunction · 0.85
wrap_travelerFunction · 0.85
wrap_lonely_travelerFunction · 0.85
attrMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected